src/PhpDocumentLoader.php
public function open(string $uri, string $content)
    {
        if (isset($this->documents[$uri])) {
            $document = $this->documents[$uri];
            $document->updateContent($content);
        } else {
            $document = $this->create($uri, $content);
            $this->documents[$uri] = $document;
        }
        return $document;
    }
public function open(string $uri, string $content)
    {
        if (isset($this->documents[$uri])) {
            $document = $this->documents[$uri];
            $document->updateContent($content);
        } else {
            $document = $this->create($uri, $content);
            $this->documents[$uri] = $document;
        }
        return $document;
    }
public function open ( string $ uri , string $ content ) { if ( isset ( $ this -> documents [ $ uri ] ) ) { $ document = $ this -> documents [ $ uri ] ; $ document -> updateContent ( $ content ) ; } else { $ document = $ this -> create ( $ uri , $ content ) ; $ this -> documents [ $ uri ] = $ document ; } return $ document ; }
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 .