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