Blame view

common/modules/comment/models/interfaces/CommentInterface.php 600 Bytes
d8c1a2e0   Yarik   Big commit artbox
1
2
3
  <?php
      
      namespace common\modules\comment\models\interfaces;
5c2eb7c8   Yarik   Big commit almost...
4
      
d8c1a2e0   Yarik   Big commit artbox
5
      use yii\data\ActiveDataProvider;
5c2eb7c8   Yarik   Big commit almost...
6
      
d8c1a2e0   Yarik   Big commit artbox
7
8
9
10
11
12
      /**
       * Interface CommentInterface
       * @package common\modules\comment\models\interfaces
       */
      interface CommentInterface
      {
5c2eb7c8   Yarik   Big commit almost...
13
          
8af13427   Yarik   For leha commit.
14
          public function setEntity(string $entity);
d8c1a2e0   Yarik   Big commit artbox
15
          
8af13427   Yarik   For leha commit.
16
          public function getEntity(): string;
d8c1a2e0   Yarik   Big commit artbox
17
          
8af13427   Yarik   For leha commit.
18
          public function setEntityId(int $entityId);
d8c1a2e0   Yarik   Big commit artbox
19
          
8af13427   Yarik   For leha commit.
20
          public function getEntityId(): int;
d8c1a2e0   Yarik   Big commit artbox
21
          
8af13427   Yarik   For leha commit.
22
          public static function getTree(string $entity, int $entityId): ActiveDataProvider;
d8c1a2e0   Yarik   Big commit artbox
23
24
          
      }