Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | class ShippingGatewayRepository extends EntityRepository implements ShippingGatewayRepositoryInterface |
||
19 | { |
||
20 | public function createListQueryBuilder(): QueryBuilder |
||
21 | { |
||
22 | return $this->createQueryBuilder('o'); |
||
23 | } |
||
24 | |||
25 | public function findOneByCode(string $code): ?ShippingGatewayInterface |
||
26 | { |
||
27 | return $this->createQueryBuilder('o') |
||
|
|||
28 | ->where('o.code = :code') |
||
29 | ->setParameter('code', $code) |
||
30 | ->getQuery() |
||
31 | ->getOneOrNullResult() |
||
32 | ; |
||
33 | } |
||
34 | |||
35 | public function findOneByShippingMethod(ShippingMethodInterface $shippingMethod): ?ShippingGatewayInterface |
||
42 | ; |
||
43 | } |
||
44 | } |
||
45 |