| 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 | * Sets children. |
||
| 54 | * |
||
| 55 | * @param string $children |
||
| 56 | */ |
||
| 57 | public function setChildren($children) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | public function getType() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | public function getArray() |
||
| 81 | } |
||
| 82 |