From cd989f9c3aff968e19a3aeabc4eb9085787a6673 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:43:12 +0200 Subject: Adding upstream version 1.10.2. Signed-off-by: Daniel Baumann --- library/Director/Objects/IcingaServiceGroup.php | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 library/Director/Objects/IcingaServiceGroup.php (limited to 'library/Director/Objects/IcingaServiceGroup.php') diff --git a/library/Director/Objects/IcingaServiceGroup.php b/library/Director/Objects/IcingaServiceGroup.php new file mode 100644 index 0000000..ae43ff3 --- /dev/null +++ b/library/Director/Objects/IcingaServiceGroup.php @@ -0,0 +1,42 @@ +servicegroupMembershipResolver === null) { + $this->servicegroupMembershipResolver = new ServiceGroupMembershipResolver( + $this->getConnection() + ); + } + + return $this->servicegroupMembershipResolver; + } + + public function setServiceGroupMembershipResolver(ServiceGroupMembershipResolver $resolver) + { + $this->servicegroupMembershipResolver = $resolver; + return $this; + } + + protected function notifyResolvers() + { + $resolver = $this->getServiceGroupMembershipResolver(); + $resolver->addGroup($this); + $resolver->refreshDb(); + + return $this; + } +} -- cgit v1.2.3