1<?php 2 3namespace Elastica\QueryBuilder\DSL; 4 5use Elastica\Collapse\InnerHits; 6use Elastica\QueryBuilder\DSL; 7 8/** 9 * Class Collapse. 10 * 11 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-collapse.html 12 */ 13class Collapse implements DSL 14{ 15 public function getType(): string 16 { 17 return self::TYPE_COLLAPSE; 18 } 19 20 public function inner_hits(): InnerHits 21 { 22 return new InnerHits(); 23 } 24} 25