1<?php
2
3namespace Elastica\Aggregation;
4
5/**
6 * Class Children.
7 *
8 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-children-aggregation.html
9 */
10class Children extends AbstractAggregation
11{
12    /**
13     * Set the type for this aggregation.
14     *
15     * @param string $type the child type the buckets in the parent space should be mapped to
16     *
17     * @return $this
18     */
19    public function setType(string $type): self
20    {
21        return $this->setParam('type', $type);
22    }
23}
24