mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
Sync: better IDE hints
This commit is contained in:
parent
a092c5d79e
commit
179054b239
@ -4,6 +4,7 @@ namespace Icinga\Module\Director\Import;
|
|||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Icinga\Data\Filter\Filter;
|
use Icinga\Data\Filter\Filter;
|
||||||
|
use Icinga\Module\Director\Data\Db\DbObject;
|
||||||
use Icinga\Module\Director\Db;
|
use Icinga\Module\Director\Db;
|
||||||
use Icinga\Module\Director\Db\Cache\PrefetchCache;
|
use Icinga\Module\Director\Db\Cache\PrefetchCache;
|
||||||
use Icinga\Module\Director\Objects\HostGroupMembershipResolver;
|
use Icinga\Module\Director\Objects\HostGroupMembershipResolver;
|
||||||
@ -509,7 +510,7 @@ class Sync
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param IcingaObject $object
|
* @param DbObject $object
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
protected function setResolver($object)
|
protected function setResolver($object)
|
||||||
@ -559,7 +560,7 @@ class Sync
|
|||||||
*
|
*
|
||||||
* TODO: This needs to be splitted into smaller methods
|
* TODO: This needs to be splitted into smaller methods
|
||||||
*
|
*
|
||||||
* @return array List of modified IcingaObjects
|
* @return DbObject[] List of modified IcingaObjects
|
||||||
*/
|
*/
|
||||||
protected function prepare()
|
protected function prepare()
|
||||||
{
|
{
|
||||||
@ -657,7 +658,7 @@ class Sync
|
|||||||
foreach ($objects as $object) {
|
foreach ($objects as $object) {
|
||||||
$this->setResolver($object);
|
$this->setResolver($object);
|
||||||
if ($object->shouldBeRemoved()) {
|
if ($object->shouldBeRemoved()) {
|
||||||
$object->delete($db);
|
$object->delete();
|
||||||
$deleted++;
|
$deleted++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user