IcingaObject: add some type-hints

This commit is contained in:
Thomas Gelf 2021-10-05 18:05:36 +02:00
parent a29efe478c
commit 1a5df745e3
1 changed files with 8 additions and 0 deletions

View File

@ -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 = [];