Gittern\Repository::getIndex PHP Метод

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

public getIndex ( )
    public function getIndex()
    {
        if (!$this->index) {
            if ($this->transport->hasIndexData()) {
                $this->index = $this->index_hydrator->hydrate($this->transport->getIndexData());
            } else {
                $this->index = new Index();
            }
        }
        return $this->index;
    }