From 2d73aad9d1ed2c9131c307971bbb184565f78490 Mon Sep 17 00:00:00 2001 From: Valentina Da Rold Date: Wed, 2 Oct 2019 09:47:51 +0200 Subject: [PATCH] Add PHPDoc to getCategory function --- library/Director/Objects/DirectorDatafield.php | 4 ++++ 1 file changed, 4 insertions(+) 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) {