diff --git a/library/Director/Objects/IcingaCommandArgument.php b/library/Director/Objects/IcingaCommandArgument.php index 627a5b1a..be4db155 100644 --- a/library/Director/Objects/IcingaCommandArgument.php +++ b/library/Director/Objects/IcingaCommandArgument.php @@ -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,