MockType
- Type
- Class
- Namespace
- craft\test\mockclasses\gql
- Inherits
- craft\test\mockclasses\gql\MockType »
GraphQL\Type\Definition\ScalarType
Class MockType
View source (opens new window)
# Public Properties
Property | Description |
---|---|
name | string (opens new window) |
# name
- Type
- string (opens new window)
- Default value
'mockType'
View source (opens new window)
# Public Methods
Method | Description |
---|---|
getName() | |
getType() | Returns a singleton instance to ensure one type per schema. |
parseLiteral() | |
parseValue() | |
serialize() |
# getName()
View source (opens new window)
# getType()
Returns a singleton instance to ensure one type per schema.
View source (opens new window)
Returns
craft\test\mockclasses\gql\MockType
# parseLiteral()
View source (opens new window)
Arguments
$valueNode
$variables
# parseValue()
View source (opens new window)
Arguments
$value
# serialize()
View source (opens new window)
Arguments
$value