PHP Class GraphQL\Examples\Blog\Type\Scalar\EmailType

Inheritance: extends GraphQL\Examples\Blog\Type\BaseType
Show file Open project: webonyx/graphql-php Class Usage Examples

Public Methods

Method Description
create ( )
parseLiteral ( Node $valueNode ) : string Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input
parseValue ( mixed $value ) : mixed Parses an externally provided value (query variable) to use as an input
serialize ( string $value ) : string Serializes an internal value to include in a response.

Method Details

create() public static method

public static create ( )

parseLiteral() public static method

Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input
public static parseLiteral ( Node $valueNode ) : string
$valueNode GraphQL\Language\AST\Node
return string

parseValue() public static method

Parses an externally provided value (query variable) to use as an input
public static parseValue ( mixed $value ) : mixed
$value mixed
return mixed

serialize() public static method

Serializes an internal value to include in a response.
public static serialize ( string $value ) : string
$value string
return string