Blame view

models/interfaces/CommentInterface.php 538 Bytes
a2cde075   Yarik   first commit
1
2
  <?php
      
faff2c48   Yarik   Artbox comment cr...
3
      namespace artbox\webcomment\models\interfaces;
a2cde075   Yarik   first commit
4
5
6
7
8
      
      use yii\data\ActiveDataProvider;
      
      /**
       * Interface CommentInterface
a2cde075   Yarik   first commit
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
       */
      interface CommentInterface
      {
          
          public function setEntity(string $entity);
          
          public function getEntity(): string;
          
          public function setEntityId(int $entityId);
          
          public function getEntityId(): int;
          
          public static function getTree(string $entity, int $entityId): ActiveDataProvider;
          
      }