Number ​
- Type
- Class
- Namespace
- craft\gql\types
- Inherits
- craft\gql\types\Number »
GraphQL\Type\Definition\ScalarType
- Since
- 3.4.0
Class Number
Public Properties ​
Property | Description |
---|---|
description | string |
name | string |
description
​
- Type
- string
- Default value
'The
Numberscalar type represents a number that can be a float, an integer or a null value.'
name
​
- Type
- string
- Default value
'Number'
Public Methods ​
Method | Description |
---|---|
__construct() | |
getName() | |
getType() | Returns a singleton instance to ensure one type per schema. |
parseLiteral() | |
parseValue() | |
serialize() |
__construct()
​
Arguments ​
$config
getName()
​
Returns ​
getType()
​
Returns a singleton instance to ensure one type per schema.
Returns ​
parseLiteral()
​
Arguments ​
$valueNode
$variables
parseValue()
​
Arguments ​
$value
serialize()
​
Arguments ​
$value