GraphQL\Type\Definition\ScalarType::__construct PHP Method

__construct() public method

ScalarType constructor.
public __construct ( )
    public function __construct()
    {
        if (!isset($this->name)) {
            $this->name = $this->tryInferName();
        }
        Utils::invariant($this->name, 'Type must be named.');
    }
ScalarType