lib/Elastica/Query/Ids.php
public function setIds($ids): self
    {
        if (\is_array($ids)) {
            $this->_params['values'] = $ids;
        } else {
            $this->_params['values'] = [$ids];
        }

        return $this;
    }
public function setIds($ids): self
    {
        if (\is_array($ids)) {
            $this->_params['values'] = $ids;
        } else {
            $this->_params['values'] = [$ids];
        }

        return $this;
    }
public function setIds ( $ ids ) : self { if ( \ is_array ( $ ids ) ) { $ this -> _params [ 'values' ] = $ ids ; } else { $ this -> _params [ 'values' ] = [ $ ids ] ; } return $ this ; }
Sets the ids to filter.

@param array|string $ids List of ids

@return $this
Sets the ids to filter .