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

Inheritance: extends GraphQL\Type\Definition\ScalarType
Show file Open project: webonyx/graphql-php

Public Methods

Method Description
parseLiteral ( $ast ) : null | string Parses an externally provided literal value to use as an input (e.g. in Query AST)
parseValue ( mixed $value ) : mixed Parses an externally provided value (query variable) to use as an input
serialize ( mixed $value ) : mixed Serializes an internal value to include in a response.

Method Details

parseLiteral() public method

Parses an externally provided literal value to use as an input (e.g. in Query AST)
public parseLiteral ( $ast ) : null | string
$ast Node
return null | string

parseValue() public method

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

serialize() public method

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