caisse-bliss/var/cache/dev/Symfony/Config/Framework/UidConfig.php

168 lines
5.0 KiB
PHP

<?php
namespace Symfony\Config\Framework;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class UidConfig
{
private $enabled;
private $defaultUuidVersion;
private $nameBasedUuidVersion;
private $nameBasedUuidNamespace;
private $timeBasedUuidVersion;
private $timeBasedUuidNode;
private $_usedProperties = [];
/**
* @default true
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enabled($value): static
{
$this->_usedProperties['enabled'] = true;
$this->enabled = $value;
return $this;
}
/**
* @default 6
* @param ParamConfigurator|6|4|1 $value
* @return $this
*/
public function defaultUuidVersion($value): static
{
$this->_usedProperties['defaultUuidVersion'] = true;
$this->defaultUuidVersion = $value;
return $this;
}
/**
* @default 5
* @param ParamConfigurator|5|3 $value
* @return $this
*/
public function nameBasedUuidVersion($value): static
{
$this->_usedProperties['nameBasedUuidVersion'] = true;
$this->nameBasedUuidVersion = $value;
return $this;
}
/**
* @default null
* @param ParamConfigurator|mixed $value
* @return $this
*/
public function nameBasedUuidNamespace($value): static
{
$this->_usedProperties['nameBasedUuidNamespace'] = true;
$this->nameBasedUuidNamespace = $value;
return $this;
}
/**
* @default 6
* @param ParamConfigurator|6|1 $value
* @return $this
*/
public function timeBasedUuidVersion($value): static
{
$this->_usedProperties['timeBasedUuidVersion'] = true;
$this->timeBasedUuidVersion = $value;
return $this;
}
/**
* @default null
* @param ParamConfigurator|mixed $value
* @return $this
*/
public function timeBasedUuidNode($value): static
{
$this->_usedProperties['timeBasedUuidNode'] = true;
$this->timeBasedUuidNode = $value;
return $this;
}
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('default_uuid_version', $value)) {
$this->_usedProperties['defaultUuidVersion'] = true;
$this->defaultUuidVersion = $value['default_uuid_version'];
unset($value['default_uuid_version']);
}
if (array_key_exists('name_based_uuid_version', $value)) {
$this->_usedProperties['nameBasedUuidVersion'] = true;
$this->nameBasedUuidVersion = $value['name_based_uuid_version'];
unset($value['name_based_uuid_version']);
}
if (array_key_exists('name_based_uuid_namespace', $value)) {
$this->_usedProperties['nameBasedUuidNamespace'] = true;
$this->nameBasedUuidNamespace = $value['name_based_uuid_namespace'];
unset($value['name_based_uuid_namespace']);
}
if (array_key_exists('time_based_uuid_version', $value)) {
$this->_usedProperties['timeBasedUuidVersion'] = true;
$this->timeBasedUuidVersion = $value['time_based_uuid_version'];
unset($value['time_based_uuid_version']);
}
if (array_key_exists('time_based_uuid_node', $value)) {
$this->_usedProperties['timeBasedUuidNode'] = true;
$this->timeBasedUuidNode = $value['time_based_uuid_node'];
unset($value['time_based_uuid_node']);
}
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['defaultUuidVersion'])) {
$output['default_uuid_version'] = $this->defaultUuidVersion;
}
if (isset($this->_usedProperties['nameBasedUuidVersion'])) {
$output['name_based_uuid_version'] = $this->nameBasedUuidVersion;
}
if (isset($this->_usedProperties['nameBasedUuidNamespace'])) {
$output['name_based_uuid_namespace'] = $this->nameBasedUuidNamespace;
}
if (isset($this->_usedProperties['timeBasedUuidVersion'])) {
$output['time_based_uuid_version'] = $this->timeBasedUuidVersion;
}
if (isset($this->_usedProperties['timeBasedUuidNode'])) {
$output['time_based_uuid_node'] = $this->timeBasedUuidNode;
}
return $output;
}
}