<?php

namespace Symfony\Config\LightSamlSymfonyBridge;


use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;


/**
 * This class is automatically generated to help creating config.
 *
 * @experimental in 5.3
 */
class SystemConfig 
{
    private $eventDispatcher;
    private $logger;
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function eventDispatcher($value): self
    {
        $this->eventDispatcher = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function logger($value): self
    {
        $this->logger = $value;
    
        return $this;
    }
    
    public function __construct(array $value = [])
    {
    
        if (isset($value['event_dispatcher'])) {
            $this->eventDispatcher = $value['event_dispatcher'];
            unset($value['event_dispatcher']);
        }
    
        if (isset($value['logger'])) {
            $this->logger = $value['logger'];
            unset($value['logger']);
        }
    
        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 (null !== $this->eventDispatcher) {
            $output['event_dispatcher'] = $this->eventDispatcher;
        }
        if (null !== $this->logger) {
            $output['logger'] = $this->logger;
        }
    
        return $output;
    }
    

}
