src/PhpDocumentLoader.php
public function getOrLoad(string $uri): Promise
    {
        return isset($this->documents[$uri]) ? Promise\resolve($this->documents[$uri]) : $this->load($uri);
    }
public function getOrLoad(string $uri): Promise
    {
        return isset($this->documents[$uri]) ? Promise\resolve($this->documents[$uri]) : $this->load($uri);
    }
public function getOrLoad ( string $ uri ) : Promise { return isset ( $ this -> documents [ $ uri ] ) ? Promise \ resolve ( $ this -> documents [ $ uri ] ) : $ this -> load ( $ uri ) ; }
Returns the document indicated by uri.
If the document is not open, loads it.

@param string $uri
@return Promise <PhpDocument>
Returns the document indicated by uri . If the document is not open loads it .