Lister::getIterator PHP Method

getIterator() public method

Returns data source iterator.
public getIterator ( ) : mixed
return mixed
    public function getIterator()
    {
        if (is_null($i = $this->model ?: $this->dq ?: $this->iter)) {
            throw $this->exception('Please specify data source with setSource or setModel');
        }
        if ($i instanceof Closure) {
            $i = call_user_func($i);
        }
        return $i;
    }