PHP Class GraphQL\Type\Definition\FloatType

Inheritance: extends ScalarType
Show file Open project: webonyx/graphql-php

Public Properties

Property Type Description
$description string
$name string

Public Methods

Method Description
parseLiteral ( $ast ) : float | null
parseValue ( mixed $value ) : float | null
serialize ( mixed $value ) : float | null

Private Methods

Method Description
coerceFloat ( $value ) : float | null

Method Details

parseLiteral() public method

public parseLiteral ( $ast ) : float | null
$ast
return float | null

parseValue() public method

public parseValue ( mixed $value ) : float | null
$value mixed
return float | null

serialize() public method

public serialize ( mixed $value ) : float | null
$value mixed
return float | null

Property Details

$description public property

public string $description
return string

$name public property

public string $name
return string