From 1a5df745e3aba8a51a71760171b6a2d6d25a1dc9 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 5 Oct 2021 18:05:36 +0200 Subject: [PATCH] IcingaObject: add some type-hints --- library/Director/Objects/IcingaObject.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index d2514b38..b29ecc17 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -79,6 +79,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer // property => IcingaObjectClass ]; + /** @var IcingaObjectMultiRelations[] */ protected $loadedMultiRelations = []; /** @@ -250,6 +251,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer return $prefix . $this->relatedSets[$property]; } + /** + * @param $property + * @return ExtensibleSet + */ protected function getRelatedSet($property) { if (! array_key_exists($property, $this->loadedRelatedSets)) { @@ -262,6 +267,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer return $this->loadedRelatedSets[$property]; } + /** + * @return ExtensibleSet[] + */ protected function relatedSets() { $sets = [];