Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class AddressRepository extends BaseAddressRepository implements AddressRepositoryInterface |
||
14 | { |
||
15 | /** |
||
16 | * @inheritdoc |
||
17 | */ |
||
18 | public function findByCityName(string $cityName): array |
||
19 | { |
||
20 | return $this->createQueryBuilder('o') |
||
21 | ->andWhere('o.city LIKE :city') |
||
22 | ->setParameter('city', '%' . $cityName . '%') |
||
23 | ->getQuery() |
||
24 | ->getResult() |
||
25 | ; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function findByProvinceName(string $provinceName): array |
||
40 | ; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | public function findByPostcode(string $postcode): array |
||
53 | ; |
||
54 | } |
||
56 |