| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class IdentityRepository extends Select\Repository implements IdentityRepositoryInterface |
||
| 13 | { |
||
| 14 | public function __construct(private EntityWriter $entityWriter, Select $select) |
||
| 15 | { |
||
| 16 | parent::__construct($select); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $id |
||
| 21 | * |
||
| 22 | * @return Identity|null |
||
| 23 | */ |
||
| 24 | public function findIdentity(string $id): ?Identity |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @throws Throwable |
||
| 31 | */ |
||
| 32 | public function save(Identity $identity): void |
||
| 35 | } |
||
| 36 | } |
||
| 37 |