diff --git a/library/Director/Objects/DirectorDatafield.php b/library/Director/Objects/DirectorDatafield.php index fd4f50f9..08f7e187 100644 --- a/library/Director/Objects/DirectorDatafield.php +++ b/library/Director/Objects/DirectorDatafield.php @@ -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) {