yii\elasticsearch\BatchQueryResult::valid PHP Method

valid() public method

This method is required by the interface [[\Iterator]].
public valid ( ) : boolean
return boolean whether there is a valid dataset at the current position.
    public function valid()
    {
        return !empty($this->_batch);
    }