| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | final class ShopProductsFinder implements FinderInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var QueryBuilderInterface |
||
| 22 | */ |
||
| 23 | private $shopProductsQueryBuilder; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var PaginatedFinderInterface |
||
| 27 | */ |
||
| 28 | private $productFinder; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param QueryBuilderInterface $shopProductsQueryBuilder |
||
| 32 | * @param PaginatedFinderInterface $productFinder |
||
| 33 | */ |
||
| 34 | public function __construct( |
||
| 35 | QueryBuilderInterface $shopProductsQueryBuilder, |
||
| 36 | PaginatedFinderInterface $productFinder |
||
| 37 | ) |
||
| 38 | { |
||
| 39 | $this->shopProductsQueryBuilder = $shopProductsQueryBuilder; |
||
| 40 | $this->productFinder = $productFinder; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function find(array $data): array |
||
| 52 | } |
||
| 53 | } |
||
| 54 |