| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 20 | class BookmarkMapper extends BaseMapper { |
||
| 21 | public function __construct(IDBConnection $db) { |
||
| 23 | } |
||
| 24 | |||
| 25 | public function findByEntry(int $type, int $entryId, string $userId) : Bookmark { |
||
| 26 | $sql = $this->selectUserEntities("`type` = ? AND `entry_id` = ?"); |
||
| 27 | return $this->findEntity($sql, [$userId, $type, $entryId]); |
||
|
|
|||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @see \OCA\Music\Db\BaseMapper::findUniqueEntity() |
||
| 32 | * @param Bookmark $bookmark |
||
| 33 | * @return Bookmark |
||
| 34 | */ |
||
| 35 | protected function findUniqueEntity(Entity $bookmark) : Entity { |
||
| 37 | } |
||
| 38 | } |
||
| 39 |