/** * {@inheritdoc} */ public function getBuilder() { return $this->bag->all(); }
/** * Tests if bag can get a builder. */ public function testGet() { $bag = new NamedBuilderBag([$this->getBuilder('baz')]); $this->assertNotEmpty($bag->get('baz')); }
/** * {@inheritdoc} * * @return Highlight */ public function set(array $builders) { parent::set($builders); return $this; }
/** * Returns all sub aggregations. * * @return AbstractAggregation[] */ public function getAggregations() { return $this->aggregations->all(); }