| 1 | <?php |
||
| 22 | class ChildrenAggregation extends AbstractAggregation |
||
| 23 | { |
||
| 24 | use BucketingTrait; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $children; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Return children. |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getChildren() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $name |
||
| 43 | * @param string $children |
||
| 44 | */ |
||
| 45 | public function __construct($name, $children = null) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $children |
||
| 54 | * |
||
| 55 | * @return $this |
||
| 56 | */ |
||
| 57 | public function setChildren($children) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | public function getType() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * {@inheritdoc} |
||
| 74 | */ |
||
| 75 | public function getArray() |
||
| 83 | } |
||
| 84 |