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

Inheritance: extends GraphQL\Examples\Blog\Type\BaseType
Afficher le fichier Open project: webonyx/graphql-php Class Usage Examples

Méthodes publiques

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

public static create ( )

parseLiteral() public static méthode

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
Résultat string

parseValue() public static méthode

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

serialize() public static méthode

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