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