<?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 StoreConfig 
{
    private $request;
    private $idState;
    private $ssoState;
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function request($value): self
    {
        $this->request = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function idState($value): self
    {
        $this->idState = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function ssoState($value): self
    {
        $this->ssoState = $value;
    
        return $this;
    }
    
    public function __construct(array $value = [])
    {
    
        if (isset($value['request'])) {
            $this->request = $value['request'];
            unset($value['request']);
        }
    
        if (isset($value['id_state'])) {
            $this->idState = $value['id_state'];
            unset($value['id_state']);
        }
    
        if (isset($value['sso_state'])) {
            $this->ssoState = $value['sso_state'];
            unset($value['sso_state']);
        }
    
        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->request) {
            $output['request'] = $this->request;
        }
        if (null !== $this->idState) {
            $output['id_state'] = $this->idState;
        }
        if (null !== $this->ssoState) {
            $output['sso_state'] = $this->ssoState;
        }
    
        return $output;
    }
    

}
