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"
|
// 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(
|
public function toPlainObject(
|
||||||
$resolved = false,
|
$resolved = false,
|
||||||
$skipDefaults = false,
|
$skipDefaults = false,
|
||||||
|
|
Loading…
Reference in New Issue