1 | <?php |
||
23 | class AdjacencyMatrixAggregation extends AbstractAggregation |
||
24 | { |
||
25 | const FILTERS = 'filters'; |
||
26 | |||
27 | use BucketingTrait; |
||
28 | |||
29 | /** |
||
30 | * @var BuilderInterface[] |
||
31 | */ |
||
32 | private $filters = [ |
||
33 | self::FILTERS => [] |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * Inner aggregations container init. |
||
38 | * |
||
39 | * @param string $name |
||
40 | * @param BuilderInterface[] $filters |
||
41 | */ |
||
42 | public function __construct($name, $filters = []) |
||
50 | |||
51 | /** |
||
52 | * @param string $name |
||
53 | * @param BuilderInterface $filter |
||
54 | * |
||
55 | * @throws \LogicException |
||
56 | * |
||
57 | * @return self |
||
58 | */ |
||
59 | public function addFilter($name, BuilderInterface $filter) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function getArray() |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function getType() |
||
81 | } |
||
82 |