| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | class SraaService |
||
| 26 | { |
||
| 27 | public function __construct(private readonly SraaRepository $sraaRepository) |
||
| 29 | } |
||
| 30 | |||
| 31 | public function findByNameId(NameId $nameId): ?Sraa |
||
| 32 | { |
||
| 33 | return $this->sraaRepository->findByNameId($nameId); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return Sraa[] |
||
| 38 | */ |
||
| 39 | public function findAll(): array |
||
| 40 | { |
||
| 41 | return $this->sraaRepository->findAll(); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function contains(NameId $nameId): bool |
||
| 47 | } |
||
| 48 | } |
||
| 49 |