| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| 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 | /** |
||
| 25 | * @var AddressChange $result |
||
| 26 | */ |
||
| 27 | 3 | $result = $this->entityManager->getRepository( AddressChange::class )->createQueryBuilder( 'ac' ) |
|
| 28 | 3 | ->where( 'ac.identifier.identifier = :currentIdentifier' ) |
|
| 29 | 3 | ->orWhere( 'ac.previousIdentifier.identifier = :previousIdentifier' ) |
|
| 30 | 3 | ->setParameter( 'currentIdentifier', $currentIdentifier ) |
|
| 31 | 3 | ->setParameter( 'previousIdentifier', $previousIdentifier ) |
|
| 32 | 3 | ->getQuery() |
|
| 33 | 3 | ->getOneOrNullResult(); |
|
| 34 | 3 | return $result; |
|
| 35 | } |
||
| 42 |