DateTime

Type
Class
Namespace
craft\gql\types
Inherits
craft\gql\types\DateTime » GraphQL\Type\Definition\ScalarType
Since
3.3.0

Class DateTime

View source

Public Properties

PropertyDescription
descriptionstring
namestring

description

Type
string

View source

name

Type
string

View source

Public Methods

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

__construct()

View source

Arguments

  • $config

getName()

View source

Returns

string

getType()

Returns a singleton instance to ensure one type per schema.

View source

Returns

craft\gql\types\DateTime

parseLiteral()

View source

Arguments

  • $valueNode
  • $variables

parseValue()

View source

Arguments

  • $value

serialize()

View source

Arguments

  • $value