MockType

Type
Class
Namespace
craft\test\mockclasses\gql
Inherits
craft\test\mockclasses\gql\MockType » GraphQL\Type\Definition\ScalarType

Class MockType

View source

Public Properties

PropertyDescription
namestring

name

Type
string

View source

Public Methods

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

getName()

View source

getType()

Returns a singleton instance to ensure one type per schema.

View source

Returns

craft\test\mockclasses\gql\MockType

parseLiteral()

View source

Arguments

  • $valueNode
  • $variables

parseValue()

View source

Arguments

  • $value

serialize()

View source

Arguments

  • $value