_usedProperties['enabled'] = true; $this->enabled = $value; return $this; } /** * @param ParamConfigurator|list $value * * @return $this */ public function entityTemplatePrefixes(ParamConfigurator|array $value): static { $this->_usedProperties['entityTemplatePrefixes'] = true; $this->entityTemplatePrefixes = $value; return $this; } /** * Enable the Doctrine ORM integration * @default {"enabled":true} */ public function doctrineOrm(array $value = []): \Symfony\Config\Turbo\Broadcast\DoctrineOrmConfig { if (null === $this->doctrineOrm) { $this->_usedProperties['doctrineOrm'] = true; $this->doctrineOrm = new \Symfony\Config\Turbo\Broadcast\DoctrineOrmConfig($value); } elseif (0 < \func_num_args()) { throw new InvalidConfigurationException('The node created by "doctrineOrm()" has already been initialized. You cannot pass values the second time you call doctrineOrm().'); } return $this->doctrineOrm; } public function __construct(array $value = []) { if (array_key_exists('enabled', $value)) { $this->_usedProperties['enabled'] = true; $this->enabled = $value['enabled']; unset($value['enabled']); } if (array_key_exists('entity_template_prefixes', $value)) { $this->_usedProperties['entityTemplatePrefixes'] = true; $this->entityTemplatePrefixes = $value['entity_template_prefixes']; unset($value['entity_template_prefixes']); } if (array_key_exists('doctrine_orm', $value)) { $this->_usedProperties['doctrineOrm'] = true; $this->doctrineOrm = new \Symfony\Config\Turbo\Broadcast\DoctrineOrmConfig($value['doctrine_orm']); unset($value['doctrine_orm']); } 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['enabled'])) { $output['enabled'] = $this->enabled; } if (isset($this->_usedProperties['entityTemplatePrefixes'])) { $output['entity_template_prefixes'] = $this->entityTemplatePrefixes; } if (isset($this->_usedProperties['doctrineOrm'])) { $output['doctrine_orm'] = $this->doctrineOrm->toArray(); } return $output; } }