Children.php 520 B

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