Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
35 | public function getById(UuidInterface $id): ?TranslatedAlias |
||
36 | { |
||
37 | /** @var TranslatedAliasEntity|null $translatedAliasEntity */ |
||
38 | $translatedAliasEntity = $this->objectRepository->findOneBy( |
||
39 | [ |
||
40 | 'id' => $id, |
||
41 | ] |
||
42 | ); |
||
43 | |||
44 | return $translatedAliasEntity ? $translatedAliasEntity->toTranslatedAlias() : null; |
||
45 | } |
||
47 |