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;
}