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