| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 49 | public function getByHashCode(string $hashCode): ?Registration |
||
| 50 | { |
||
| 51 | /** @var RegistrationEntity|null $registrationEntity */ |
||
| 52 | $registrationEntity = $this->objectRepository->findOneBy( |
||
| 53 | [ |
||
| 54 | 'hashCode' => $hashCode, |
||
| 55 | ] |
||
| 56 | ); |
||
| 57 | |||
| 58 | return $registrationEntity ? $registrationEntity->toRegistration() : null; |
||
| 59 | } |
||
| 61 |