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