Elastica\Query\HasChild::setType PHP Method

setType() public method

Set type of the parent document.
public setType ( string $type )
$type string Parent document type
    public function setType($type)
    {
        return $this->setParam('type', $type);
    }