1
0
Fork 0

Add docblocks

pull/63/head
Felix Becker 2016-10-11 10:45:30 +02:00
parent 8ad59a914a
commit c5947c5b79
1 changed files with 13 additions and 1 deletions

View File

@ -100,12 +100,24 @@ class Project
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)
{
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]);
}