]> git.mxchange.org Git - friendica.git/blob - src/Repository/Introduction.php
Update the Introductions domain to use repository, model and collection
[friendica.git] / src / Repository / Introduction.php
1 <?php
2
3 namespace Friendica\Repository;
4
5 use Friendica\BaseRepository;
6 use Friendica\Collection;
7 use Friendica\Model;
8
9 /**
10  * @method Model\Introduction       selectFirst(array $condition)
11  * @method Collection\Introductions select(array $condition = [], array $params = [])
12  * @method Collection\Introductions selectByBoundaries(array $condition = [], array $params = [], int $max_id = null, int $since_id = null, int $limit = self::LIMIT)
13  */
14 class Introduction extends BaseRepository
15 {
16         protected static $table_name = 'intro';
17
18         protected static $model_class = Model\Introduction::class;
19
20         protected static $collection_class = Collection\Introductions::class;
21
22         /**
23          * @param array $data
24          * @return Model\Introduction
25          */
26         protected function create(array $data)
27         {
28                 return new Model\Introduction($this->dba, $this->logger, $this, $data);
29         }
30 }