IcingaCommandArgument: add replaceWith method

This commit is contained in:
Thomas Gelf 2016-05-19 15:09:08 +02:00
parent a9e3cb767e
commit 2007dee6c0
1 changed files with 11 additions and 0 deletions

View File

@ -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,