_usedProperties['templateDirectory'] = true; $this->templateDirectory = $value; return $this; } /** * @param ParamConfigurator|mixed $value * @return $this */ public function namePrefix($value): static { $this->_usedProperties['namePrefix'] = true; $this->namePrefix = $value; return $this; } public function __construct(array $value = []) { if (array_key_exists('template_directory', $value)) { $this->_usedProperties['templateDirectory'] = true; $this->templateDirectory = $value['template_directory']; unset($value['template_directory']); } if (array_key_exists('name_prefix', $value)) { $this->_usedProperties['namePrefix'] = true; $this->namePrefix = $value['name_prefix']; unset($value['name_prefix']); } 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['templateDirectory'])) { $output['template_directory'] = $this->templateDirectory; } if (isset($this->_usedProperties['namePrefix'])) { $output['name_prefix'] = $this->namePrefix; } return $output; } }