extensions/felixfbecker.php-intellisense-0.0.12/vendor/felixfbecker/language-server/src/Project.php
/**
     * Ensures a document is loaded and added to the list of open documents.
     *
     * @param string $uri
     * @param string $content
     * @return void
     */
Ensures a document is loaded and added to the list of open documents.
@param string $uri
@param string $content
@return void
Ensures a document is loaded and added to the list of open documents . @param string $uri @param string $content @return void
public function openDocument(string $uri, string $content)
    {
        if (isset($this->documents[$uri])) {
            $document = $this->documents[$uri];
            $document->updateContent($content);
        } else {
            $document = new PhpDocument($uri, $content, $this, $this->client, $this->parser, $this->docBlockFactory);
            $this->documents[$uri] = $document;
        }
        return $document;
    }
public function openDocument ( string $ uri , string $ content ) { if ( isset ( $ this -> documents [ $ uri ] ) ) { $ document = $ this -> documents [ $ uri ] ; $ document -> updateContent ( $ content ) ; } else { $ document = new PhpDocument ( $ uri , $ content , $ this , $ this -> client , $ this -> parser , $ this -> docBlockFactory ) ; $ this -> documents [ $ uri ] = $ document ; } return $ document ; }
Ensures a document is loaded and added to the list of open documents.
Ensures a document is loaded and added to the list of open documents .