IcingaCommandArgument: align toPlainObject method
This commit is contained in:
parent
8046510b1f
commit
89d4af564e
|
@ -161,7 +161,8 @@ class IcingaCommandArgument extends IcingaObject
|
||||||
$resolved = false,
|
$resolved = false,
|
||||||
$skipDefaults = false,
|
$skipDefaults = false,
|
||||||
array $chosenProperties = null,
|
array $chosenProperties = null,
|
||||||
$resolveIds = true
|
$resolveIds = true,
|
||||||
|
$keepId = false
|
||||||
) {
|
) {
|
||||||
if ($resolved) {
|
if ($resolved) {
|
||||||
throw new RuntimeException(
|
throw new RuntimeException(
|
||||||
|
@ -175,6 +176,12 @@ class IcingaCommandArgument extends IcingaObject
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($keepId) {
|
||||||
|
throw new RuntimeException(
|
||||||
|
'IcingaCommandArgument does not support $keepId'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// $resolveIds is misused here
|
// $resolveIds is misused here
|
||||||
if ($resolveIds) {
|
if ($resolveIds) {
|
||||||
return $this->toCompatPlainObject();
|
return $this->toCompatPlainObject();
|
||||||
|
|
Loading…
Reference in New Issue