Nextras\Orm\Collection\ArrayCollection::fetch PHP Метод

fetch() публичный Метод

public fetch ( )
    public function fetch()
    {
        if (!$this->fetchIterator) {
            $this->fetchIterator = $this->getIterator();
        }
        if ($current = $this->fetchIterator->current()) {
            $this->fetchIterator->next();
            return $current;
        }
        return null;
    }