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

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

public __construct ( callable | Type $type )
$type callable | Type
    public function __construct($type)
    {
        Utils::invariant($type instanceof Type || is_callable($type), 'Expecting instance of GraphQL\\Type\\Definition\\Type or callable returning instance of that class');
        Utils::invariant(!$type instanceof NonNull, 'Cannot nest NonNull inside NonNull');
        $this->ofType = $type;
    }