<?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 creating config.
 *
 * @experimental in 5.3
 */
class RegistrationConfig 
{
    private $clientId;
    private $platform;
    private $tool;
    private $deploymentIds;
    private $platformKeyChain;
    private $toolKeyChain;
    private $platformJwksUrl;
    private $toolJwksUrl;
    private $order;
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function clientId($value): self
    {
        $this->clientId = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function platform($value): self
    {
        $this->platform = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function tool($value): self
    {
        $this->tool = $value;
    
        return $this;
    }
    
    /**
     * @param ParamConfigurator|list<mixed|ParamConfigurator> $value
     * @return $this
     */
    public function deploymentIds($value): self
    {
        $this->deploymentIds = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function platformKeyChain($value): self
    {
        $this->platformKeyChain = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function toolKeyChain($value): self
    {
        $this->toolKeyChain = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function platformJwksUrl($value): self
    {
        $this->platformJwksUrl = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|mixed $value
     * @return $this
     */
    public function toolJwksUrl($value): self
    {
        $this->toolJwksUrl = $value;
    
        return $this;
    }
    
    /**
     * @default null
     * @param ParamConfigurator|int $value
     * @return $this
     */
    public function order($value): self
    {
        $this->order = $value;
    
        return $this;
    }
    
    public function __construct(array $value = [])
    {
    
        if (isset($value['client_id'])) {
            $this->clientId = $value['client_id'];
            unset($value['client_id']);
        }
    
        if (isset($value['platform'])) {
            $this->platform = $value['platform'];
            unset($value['platform']);
        }
    
        if (isset($value['tool'])) {
            $this->tool = $value['tool'];
            unset($value['tool']);
        }
    
        if (isset($value['deployment_ids'])) {
            $this->deploymentIds = $value['deployment_ids'];
            unset($value['deployment_ids']);
        }
    
        if (isset($value['platform_key_chain'])) {
            $this->platformKeyChain = $value['platform_key_chain'];
            unset($value['platform_key_chain']);
        }
    
        if (isset($value['tool_key_chain'])) {
            $this->toolKeyChain = $value['tool_key_chain'];
            unset($value['tool_key_chain']);
        }
    
        if (isset($value['platform_jwks_url'])) {
            $this->platformJwksUrl = $value['platform_jwks_url'];
            unset($value['platform_jwks_url']);
        }
    
        if (isset($value['tool_jwks_url'])) {
            $this->toolJwksUrl = $value['tool_jwks_url'];
            unset($value['tool_jwks_url']);
        }
    
        if (isset($value['order'])) {
            $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 (null !== $this->clientId) {
            $output['client_id'] = $this->clientId;
        }
        if (null !== $this->platform) {
            $output['platform'] = $this->platform;
        }
        if (null !== $this->tool) {
            $output['tool'] = $this->tool;
        }
        if (null !== $this->deploymentIds) {
            $output['deployment_ids'] = $this->deploymentIds;
        }
        if (null !== $this->platformKeyChain) {
            $output['platform_key_chain'] = $this->platformKeyChain;
        }
        if (null !== $this->toolKeyChain) {
            $output['tool_key_chain'] = $this->toolKeyChain;
        }
        if (null !== $this->platformJwksUrl) {
            $output['platform_jwks_url'] = $this->platformJwksUrl;
        }
        if (null !== $this->toolJwksUrl) {
            $output['tool_jwks_url'] = $this->toolJwksUrl;
        }
        if (null !== $this->order) {
            $output['order'] = $this->order;
        }
    
        return $output;
    }
    

}
