Add PHPDoc to getCategory function

This commit is contained in:
Valentina Da Rold 2019-10-02 09:47:51 +02:00
parent 1d400b2899
commit 2d73aad9d1
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ class DirectorDatafield extends DbObjectWithSettings
return $this->category !== null || $this->get('category_id') !== null;
}
/**
* @return DirectorDatafieldCategory|null
* @throws \Icinga\Exception\NotFoundError
*/
public function getCategory()
{
if ($this->category) {