| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 3 | public function getAddressChangeByUuids( string $currentIdentifier, string $previousIdentifier ): ?AddressChange { |
|
| 24 | 3 | return $this->entityManager->getRepository( AddressChange::class )->createQueryBuilder( 'ac' ) |
|
| 25 | 3 | ->where( 'ac.identifier.identifier = :currentIdentifier' ) |
|
| 26 | 3 | ->orWhere( 'ac.previousIdentifier.identifier = :previousIdentifier' ) |
|
| 27 | 3 | ->setParameters( [ |
|
| 28 | 3 | 'currentIdentifier' => $currentIdentifier, |
|
| 29 | 3 | 'previousIdentifier' => $previousIdentifier |
|
| 30 | ] ) |
||
| 31 | 3 | ->getQuery() |
|
| 32 | 3 | ->getOneOrNullResult(); |
|
| 33 | } |
||
| 40 |