Initial Base

This commit is contained in:
2025-10-31 22:07:28 +00:00
parent 629a58b595
commit 3ace0308cf
717 changed files with 107359 additions and 0 deletions

View File

@@ -0,0 +1,98 @@
<?php
namespace Symfony\Config\Framework\AssetMapper;
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 PrecompressConfig
{
private $enabled;
private $formats;
private $extensions;
private $_usedProperties = [];
/**
* @default false
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enabled($value): static
{
$this->_usedProperties['enabled'] = true;
$this->enabled = $value;
return $this;
}
/**
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
*
* @return $this
*/
public function formats(ParamConfigurator|array $value): static
{
$this->_usedProperties['formats'] = true;
$this->formats = $value;
return $this;
}
/**
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
*
* @return $this
*/
public function extensions(ParamConfigurator|array $value): static
{
$this->_usedProperties['extensions'] = true;
$this->extensions = $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('formats', $value)) {
$this->_usedProperties['formats'] = true;
$this->formats = $value['formats'];
unset($value['formats']);
}
if (array_key_exists('extensions', $value)) {
$this->_usedProperties['extensions'] = true;
$this->extensions = $value['extensions'];
unset($value['extensions']);
}
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['formats'])) {
$output['formats'] = $this->formats;
}
if (isset($this->_usedProperties['extensions'])) {
$output['extensions'] = $this->extensions;
}
return $output;
}
}