src/Search.php
public function addInnerHit(NestedInnerHit $innerHit)
    {
        $this->getEndpoint(InnerHitsEndpoint::NAME)->add($innerHit, $innerHit->getName());

        return $this;
    }
public function addInnerHit(NestedInnerHit $innerHit)
    {
        $this->getEndpoint(InnerHitsEndpoint::NAME)->add($innerHit, $innerHit->getName());

        return $this;
    }
public function addInnerHit ( NestedInnerHit $ innerHit ) { $ this -> getEndpoint ( InnerHitsEndpoint :: NAME ) -> add ( $ innerHit , $ innerHit -> getName ( ) ) ; return $ this ; }
Adds inner hit into search.

@param NestedInnerHit $innerHit

@return $this
Adds inner hit into search .