コード例 #1
0
 /**
  * Tests if bag can clear it's builders.
  */
 public function testClear()
 {
     $bag = new NamedBuilderBag([$this->getBuilder('foo'), $this->getBuilder('baz')]);
     $bag->clear();
     $this->assertEmpty($bag->all());
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function getBuilder()
 {
     return $this->bag->all();
 }
コード例 #3
0
 /**
  * Returns all sub aggregations.
  *
  * @return AbstractAggregation[]
  */
 public function getAggregations()
 {
     return $this->aggregations->all();
 }