1 | <?php |
||
16 | class Facet extends Stage |
||
17 | { |
||
18 | /** @var Builder[] */ |
||
19 | private $pipelines = []; |
||
20 | |||
21 | /** @var string */ |
||
22 | private $field; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 2 | public function getExpression() : array |
|
35 | |||
36 | /** |
||
37 | * Set the current field for building the pipeline stage. |
||
38 | */ |
||
39 | 3 | public function field(string $field) : self |
|
45 | |||
46 | /** |
||
47 | * Use the given pipeline for the current field. |
||
48 | * |
||
49 | * @param Builder|Stage $builder |
||
50 | */ |
||
51 | 4 | public function pipeline($builder) : self |
|
69 | } |
||
70 |