Money ​
- Type
- Class
- Namespace
- craft\gql\types
- Inherits
- craft\gql\types\Money »
GraphQL\Type\Definition\ScalarType
- Implements
- craft\gql\base\SingularTypeInterface
- Since
- 4.0.0
Class Money implements the Money scalar type for GraphQL.
Public Properties ​
Property | Description |
---|---|
description | string |
name | string |
description
​
- Type
- string
- Default value
'The
Moneyscalar type represents a money value as a string.'
name
​
- Type
- string
- Default value
'Money'
Public Methods ​
Method | Description |
---|---|
getName() | |
getType() | Returns a singleton instance to ensure one type per schema. |
parseLiteral() | |
parseValue() | |
serialize() |
getName()
​
Returns ​
getType()
​
Returns a singleton instance to ensure one type per schema.
Returns ​
parseLiteral()
​
Arguments ​
$valueNode
$variables
parseValue()
​
Arguments ​
$value
serialize()
​
Arguments ​
$value