MockType

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

Class MockType

View source

# Public Properties

Property Description
name string

# name

Type
string

View source

# Public Methods

Method Description
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