| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class NamedProductsFinder implements NamedProductsFinderInterface |
||
| 17 | { |
||
| 18 | /** @var QueryBuilderInterface */ |
||
| 19 | private $productsByPartialNameQueryBuilder; |
||
| 20 | |||
| 21 | /** @var FinderInterface */ |
||
| 22 | private $productsFinder; |
||
| 23 | |||
| 24 | public function __construct( |
||
| 25 | QueryBuilderInterface $productsByPartialNameQueryBuilder, |
||
| 26 | FinderInterface $productsFinder |
||
| 27 | ) { |
||
| 28 | $this->productsByPartialNameQueryBuilder = $productsByPartialNameQueryBuilder; |
||
| 29 | $this->productsFinder = $productsFinder; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function findByNamePart(string $namePart): ?array |
||
| 38 | } |
||
| 39 | } |
||
| 40 |