Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
23 | class BlockedPhoneNumberRepository extends EntityRepository |
||
24 | { |
||
25 | /** |
||
26 | * @param PhoneNumber $phoneNumber |
||
27 | * @return BlockedPhoneNumberInterface |
||
28 | */ |
||
29 | public function findByPhone(PhoneNumber $phoneNumber): ?BlockedPhoneNumberInterface |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param string $search |
||
39 | * @return BlockedPhoneNumberInterface[] |
||
40 | */ |
||
41 | public function searchBlocksByPartialPhone(string $search): array |
||
42 | { |
||
43 | |||
44 | return $this->getSearchByPartialPhoneQuery($search) |
||
45 | ->getQuery() |
||
46 | ->getResult(); |
||
47 | } |
||
48 | |||
49 | public function getSearchByPartialPhoneQuery(string $search) |
||
60 | } |
||
61 | } |
||
62 |