| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class AdminResourceRepo extends Repository |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $identifier |
||
| 15 | * |
||
| 16 | * @return Entity|null |
||
| 17 | * @throws OrmException |
||
| 18 | */ |
||
| 19 | public function getByIdentifier(string $identifier): ?Entity |
||
| 20 | { |
||
| 21 | /** @see AdminResourceSqlDataMapper::getByIdentifier() */ |
||
| 22 | return $this->getFromDataMapper('getByIdentifier', [$identifier]); |
||
|
|
|||
| 23 | } |
||
| 24 | /** |
||
| 25 | * @param string $userId |
||
| 26 | * |
||
| 27 | * @return Entity[] |
||
| 28 | * @throws OrmException |
||
| 29 | */ |
||
| 30 | public function getByUserId(string $userId): array |
||
| 34 | } |
||
| 35 | } |
||
| 36 |