Total Complexity | 2 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | final class ProductAttributesFinder implements ProductAttributesFinderInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var FinderInterface |
||
23 | */ |
||
24 | private $attributesFinder; |
||
25 | |||
26 | /** |
||
27 | * @var QueryBuilderInterface |
||
28 | */ |
||
29 | private $attributesByTaxonQueryBuilder; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $taxonsProperty; |
||
35 | |||
36 | /** |
||
37 | * @param FinderInterface $attributesFinder |
||
38 | * @param QueryBuilderInterface $attributesByTaxonQueryBuilder |
||
39 | * @param string $taxonsProperty |
||
40 | */ |
||
41 | public function __construct( |
||
42 | FinderInterface $attributesFinder, |
||
43 | QueryBuilderInterface $attributesByTaxonQueryBuilder, |
||
44 | string $taxonsProperty |
||
45 | ) |
||
46 | { |
||
47 | $this->attributesFinder = $attributesFinder; |
||
48 | $this->attributesByTaxonQueryBuilder = $attributesByTaxonQueryBuilder; |
||
49 | $this->taxonsProperty = $taxonsProperty; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function findByTaxon(TaxonInterface $taxon): ?array |
||
64 | } |
||
65 | } |
||
66 |