Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | final class ProductOptionsFinder implements ProductOptionsFinderInterface |
||
18 | { |
||
19 | /** @var FinderInterface */ |
||
20 | private $optionsFinder; |
||
21 | |||
22 | /** @var QueryBuilderInterface */ |
||
23 | private $productOptionsByTaxonQueryBuilder; |
||
24 | |||
25 | /** @var string */ |
||
26 | private $taxonsProperty; |
||
27 | |||
28 | public function __construct( |
||
29 | FinderInterface $optionsFinder, |
||
30 | QueryBuilderInterface $productOptionsByTaxonQueryBuilder, |
||
31 | string $taxonsProperty |
||
32 | ) { |
||
33 | $this->optionsFinder = $optionsFinder; |
||
34 | $this->productOptionsByTaxonQueryBuilder = $productOptionsByTaxonQueryBuilder; |
||
35 | $this->taxonsProperty = $taxonsProperty; |
||
36 | } |
||
37 | |||
38 | public function findByTaxon(TaxonInterface $taxon): ?array |
||
46 | } |
||
47 | } |
||
48 |