Number

Type
Class
Namespace
craft\gql\types
Inherits
craft\gql\types\Number » GraphQL\Type\Definition\ScalarType
Since
3.4.0

Class Number

View source

# Public Properties

Property Description
description string
name string

# description

Type
string

View source

# name

Type
string

View source

# Public Methods

Method Description
__construct()
getName()
getType() Returns a singleton instance to ensure one type per schema.
parseLiteral()
parseValue()
serialize()

# __construct()

View source

Arguments

  • $config

# getName()

View source

Returns

string

# getType()

Returns a singleton instance to ensure one type per schema.

View source

Returns

craft\gql\types\Number

# parseLiteral()

View source

Arguments

  • $valueNode
  • $variables

# parseValue()

View source

Arguments

  • $value

# serialize()

View source

Arguments

  • $value