1 | <?php |
||
18 | class NotFactory implements Factory |
||
19 | { |
||
20 | /** |
||
21 | * @var Registry |
||
22 | */ |
||
23 | private $registry; |
||
24 | |||
25 | /** |
||
26 | * @param Registry $registry |
||
27 | */ |
||
28 | 7 | public function __construct(Registry $registry) |
|
32 | |||
33 | /** |
||
34 | * {inheritdoc} |
||
35 | */ |
||
36 | 3 | public function create(Specification $spec): string |
|
52 | |||
53 | /** |
||
54 | * Algolia does not allows to negate a group |
||
55 | * @see https://www.algolia.com/doc/api-client/php/parameters#filters |
||
56 | * |
||
57 | * @throws \InvalidArgumentException |
||
58 | */ |
||
59 | 2 | private function validate(Specification $spec) |
|
65 | } |
||
66 |