GraphQL\Type\Definition\InputObjectField::__construct PHP Метод

__construct() публичный Метод

InputObjectField constructor.
public __construct ( array $opts )
$opts array
    public function __construct(array $opts)
    {
        foreach ($opts as $k => $v) {
            switch ($k) {
                case 'defaultValue':
                    $this->defaultValue = $v;
                    $this->defaultValueExists = true;
                    break;
                case 'defaultValueExists':
                    break;
                default:
                    $this->{$k} = $v;
            }
        }
    }