blob: 92fb1cb01ee804659eadacf5fc46a4ff9554e565 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
namespace Icinga\Module\Director\Objects;
class IcingaServiceGroup extends IcingaObjectGroup
{
protected $table = 'icinga_servicegroup';
/** @var ServiceGroupMembershipResolver */
protected $servicegroupMembershipResolver;
public function supportsAssignments()
{
return true;
}
protected function getServiceGroupMembershipResolver()
{
if ($this->servicegroupMembershipResolver === null) {
$this->servicegroupMembershipResolver = new ServiceGroupMembershipResolver(
$this->getConnection()
);
}
return $this->servicegroupMembershipResolver;
}
public function setServiceGroupMembershipResolver(ServiceGroupMembershipResolver $resolver)
{
$this->servicegroupMembershipResolver = $resolver;
return $this;
}
protected function getMemberShipResolver()
{
return $this->getServiceGroupMembershipResolver();
}
}
|