<?php

namespace Symfony\Config\Lti1p3;


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 RegistrationConfig 
{
    private $clientId;
    private $platform;
    private $tool;
    private $deploymentIds;
    private $platformKeyChain;
    private $toolKeyChain;
    private $platformJwksUrl;
    private $toolJwksUrl;
    private $order;
    private $_usedProperties = [];
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function clientId($value): self
    {
        $this->_usedProperties['clientId'] = true;
        $this->clientId = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function platform($value): self
    {
        $this->_usedProperties['platform'] = true;
        $this->platform = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function tool($value): self
    {
        $this->_usedProperties['tool'] = true;
        $this->tool = $value;
    
        return $this;
    }
    
    /**
     * @param ParamConfigurator|list<mixed|ParamConfigurator> $value
     * @return $this
     */
    public function deploymentIds($value): self
    {
        $this->_usedProperties['deploymentIds'] = true;
        $this->deploymentIds = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function platformKeyChain($value): self
    {
        $this->_usedProperties['platformKeyChain'] = true;
        $this->platformKeyChain = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function toolKeyChain($value): self
    {
        $this->_usedProperties['toolKeyChain'] = true;
        $this->toolKeyChain = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function platformJwksUrl($value): self
    {
        $this->_usedProperties['platformJwksUrl'] = true;
        $this->platformJwksUrl = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function toolJwksUrl($value): self
    {
        $this->_usedProperties['toolJwksUrl'] = true;
        $this->toolJwksUrl = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|int $value
     * @return $this
     */
    public function order($value): self
    {
        $this->_usedProperties['order'] = true;
        $this->order = $value;
    
        return $this;
    }
    
    public function __construct(array $value = [])
    {
    
        if (array_key_exists('client_id', $value)) {
            $this->_usedProperties['clientId'] = true;
            $this->clientId = $value['client_id'];
            unset($value['client_id']);
        }
    
        if (array_key_exists('platform', $value)) {
            $this->_usedProperties['platform'] = true;
            $this->platform = $value['platform'];
            unset($value['platform']);
        }
    
        if (array_key_exists('tool', $value)) {
            $this->_usedProperties['tool'] = true;
            $this->tool = $value['tool'];
            unset($value['tool']);
        }
    
        if (array_key_exists('deployment_ids', $value)) {
            $this->_usedProperties['deploymentIds'] = true;
            $this->deploymentIds = $value['deployment_ids'];
            unset($value['deployment_ids']);
        }
    
        if (array_key_exists('platform_key_chain', $value)) {
            $this->_usedProperties['platformKeyChain'] = true;
            $this->platformKeyChain = $value['platform_key_chain'];
            unset($value['platform_key_chain']);
        }
    
        if (array_key_exists('tool_key_chain', $value)) {
            $this->_usedProperties['toolKeyChain'] = true;
            $this->toolKeyChain = $value['tool_key_chain'];
            unset($value['tool_key_chain']);
        }
    
        if (array_key_exists('platform_jwks_url', $value)) {
            $this->_usedProperties['platformJwksUrl'] = true;
            $this->platformJwksUrl = $value['platform_jwks_url'];
            unset($value['platform_jwks_url']);
        }
    
        if (array_key_exists('tool_jwks_url', $value)) {
            $this->_usedProperties['toolJwksUrl'] = true;
            $this->toolJwksUrl = $value['tool_jwks_url'];
            unset($value['tool_jwks_url']);
        }
    
        if (array_key_exists('order', $value)) {
            $this->_usedProperties['order'] = true;
            $this->order = $value['order'];
            unset($value['order']);
        }
    
        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['clientId'])) {
            $output['client_id'] = $this->clientId;
        }
        if (isset($this->_usedProperties['platform'])) {
            $output['platform'] = $this->platform;
        }
        if (isset($this->_usedProperties['tool'])) {
            $output['tool'] = $this->tool;
        }
        if (isset($this->_usedProperties['deploymentIds'])) {
            $output['deployment_ids'] = $this->deploymentIds;
        }
        if (isset($this->_usedProperties['platformKeyChain'])) {
            $output['platform_key_chain'] = $this->platformKeyChain;
        }
        if (isset($this->_usedProperties['toolKeyChain'])) {
            $output['tool_key_chain'] = $this->toolKeyChain;
        }
        if (isset($this->_usedProperties['platformJwksUrl'])) {
            $output['platform_jwks_url'] = $this->platformJwksUrl;
        }
        if (isset($this->_usedProperties['toolJwksUrl'])) {
            $output['tool_jwks_url'] = $this->toolJwksUrl;
        }
        if (isset($this->_usedProperties['order'])) {
            $output['order'] = $this->order;
        }
    
        return $output;
    }

}
