1<?php
2
3namespace Elastica\Aggregation;
4
5use Elastica\Query\AbstractQuery;
6
7class AdjacencyMatrix extends AbstractAggregation
8{
9    /**
10     * Add a named filter.
11     *
12     * @return $this
13     */
14    public function addFilter(AbstractQuery $filter, string $name): self
15    {
16        return $this->addParam('filters', $filter, $name);
17    }
18
19    /**
20     * @return $this
21     */
22    public function setSeparator(string $separator = '&'): self
23    {
24        return $this->setParam('separator', $separator);
25    }
26}
27