mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
IcingaCommandArgument: add replaceWith method
This commit is contained in:
parent
a9e3cb767e
commit
2007dee6c0
@ -48,6 +48,17 @@ class IcingaCommandArgument extends IcingaObject
|
||||
// No log right now, we have to handle "sub-objects"
|
||||
}
|
||||
|
||||
public function replaceWith(IcingaObject $object)
|
||||
{
|
||||
$this->setProperties((array) $object->toPlainObject(
|
||||
false,
|
||||
false,
|
||||
null,
|
||||
false
|
||||
));
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function toPlainObject(
|
||||
$resolved = false,
|
||||
$skipDefaults = false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user