_usedProperties['id'] = true; $this->id = $value; return $this; } /** * @param ParamConfigurator|list $value * * @return $this */ public function arguments(ParamConfigurator|array $value): static { $this->_usedProperties['arguments'] = true; $this->arguments = $value; return $this; } public function __construct(array $value = []) { if (array_key_exists('id', $value)) { $this->_usedProperties['id'] = true; $this->id = $value['id']; unset($value['id']); } if (array_key_exists('arguments', $value)) { $this->_usedProperties['arguments'] = true; $this->arguments = $value['arguments']; unset($value['arguments']); } if ([] !== $value) { throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value))); } } public function toArray(): array { $output = []; if (isset($this->_usedProperties['id'])) { $output['id'] = $this->id; } if (isset($this->_usedProperties['arguments'])) { $output['arguments'] = $this->arguments; } return $output; } }