Add docblocks
parent
8ad59a914a
commit
c5947c5b79
|
@ -100,12 +100,24 @@ class Project
|
||||||
return $document;
|
return $document;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the document with the specified URI from the list of open documents
|
||||||
|
*
|
||||||
|
* @param string $uri
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
public function closeDocument(string $uri)
|
public function closeDocument(string $uri)
|
||||||
{
|
{
|
||||||
unset($this->documents[$uri]);
|
unset($this->documents[$uri]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isDocumentOpen(string $uri)
|
/**
|
||||||
|
* Returns true if the document is open (and loaded)
|
||||||
|
*
|
||||||
|
* @param string $uri
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function isDocumentOpen(string $uri): bool
|
||||||
{
|
{
|
||||||
return isset($this->documents[$uri]);
|
return isset($this->documents[$uri]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue