TheSeer\phpDox\Collector\Project::initCollections PHP Method

initCollections() private method

private initCollections ( ) : void
return void
    private function initCollections()
    {
        $this->source = new SourceCollection($this->srcDir);
        $srcFile = $this->xmlDir . '/source.xml';
        if (file_exists($srcFile)) {
            $dom = new fDOMDocument();
            $dom->load($srcFile);
            $this->source->import($dom);
        }
        $this->index = new IndexCollection($this->srcDir);
        $srcFile = $this->xmlDir . '/index.xml';
        if (file_exists($srcFile)) {
            $dom = new fDOMDocument();
            $dom->load($srcFile);
            $this->index->import($dom);
        }
    }