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

Inheritance: extends GraphQL\Type\Definition\ScalarType
Afficher le fichier Open project: webonyx/graphql-php

Méthodes publiques

Méthode 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 méthode

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

parseValue() public méthode

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

serialize() public méthode

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