| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class PriceRepository extends DoctrineCrudRepository implements PriceRepositoryInterface |
||
| 24 | { |
||
| 25 | public function getAll(): array |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getAllForProduct(Product $product): array |
||
| 31 | { |
||
| 32 | return $this->entityRepository->findBy(['product' => $product]); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getByExternalReference(string $externalReference): Price |
||
| 44 | } |
||
| 45 | } |
||
| 46 |