Elastica\Query\Ids::addType PHP Method

addType() public method

Adds one more type to query.
public addType ( string | Type $type )
$type string | Elastica\Type Type name or object
    public function addType($type)
    {
        if ($type instanceof ElasticaType) {
            $type = $type->getName();
        } elseif (empty($type) && !is_numeric($type)) {
            // A type can be 0, but cannot be empty
            return $this;
        }
        $this->_params['type'][] = $type;
        return $this;
    }