| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | final class IdentityRepository extends Select\Repository implements IdentityRepositoryInterface |
||
| 13 | { |
||
| 14 | private EntityWriter $entityWriter; |
||
| 15 | |||
| 16 | 10 | public function __construct(Select $select, EntityWriter $entityWriter) |
|
| 20 | 10 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $id |
||
| 24 | * |
||
| 25 | * @return Identity|null |
||
| 26 | */ |
||
| 27 | public function findIdentity(string $id): ?Identity |
||
| 28 | { |
||
| 29 | return $this->findOne(['user_id' => $id]); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @throws Throwable |
||
| 34 | */ |
||
| 35 | public function save(Identity $identity): void |
||
| 38 | } |
||
| 39 | } |
||
| 40 |