PHP Class GraphQL\Type\Definition\Type

Inheritance: implements JsonSerializable
Exibir arquivo Open project: webonyx/graphql-php Class Usage Examples

Public Properties

Property Type Description
$description string | null
$name string

Public Methods

Method Description
__toString ( ) : string
boolean ( ) : BooleanType
float ( ) : FloatType
getInternalTypes ( ) : Type[]
getNamedType ( $type ) : UnmodifiedType
getNullableType ( $type ) : Type
id ( ) : IDType
int ( ) : IntType
isAbstractType ( $type ) : boolean
isCompositeType ( $type ) : boolean
isInputType ( $type ) : boolean
isLeafType ( $type ) : boolean
isOutputType ( $type ) : boolean
jsonSerialize ( ) : string
listOf ( $wrappedType ) : ListOfType
nonNull ( $wrappedType ) : NonNull
resolve ( $type ) : mixed
string ( ) : StringType
toString ( ) : string

Protected Methods

Method Description
tryInferName ( ) : null | string

Private Methods

Method Description
getInternalType ( $name = null ) : Type | array

Method Details

__toString() public method

public __toString ( ) : string
return string

boolean() public static method

public static boolean ( ) : BooleanType
return BooleanType

float() public static method

public static float ( ) : FloatType
return FloatType

getInternalTypes() public static method

public static getInternalTypes ( ) : Type[]
return Type[]

getNamedType() public static method

public static getNamedType ( $type ) : UnmodifiedType
$type
return UnmodifiedType

getNullableType() public static method

public static getNullableType ( $type ) : Type
$type
return Type

id() public static method

public static id ( ) : IDType
return IDType

int() public static method

public static int ( ) : IntType
return IntType

isAbstractType() public static method

public static isAbstractType ( $type ) : boolean
$type
return boolean

isCompositeType() public static method

public static isCompositeType ( $type ) : boolean
$type
return boolean

isInputType() public static method

public static isInputType ( $type ) : boolean
$type
return boolean

isLeafType() public static method

public static isLeafType ( $type ) : boolean
$type
return boolean

isOutputType() public static method

public static isOutputType ( $type ) : boolean
$type
return boolean

jsonSerialize() public method

public jsonSerialize ( ) : string
return string

listOf() public static method

public static listOf ( $wrappedType ) : ListOfType
$wrappedType
return ListOfType

nonNull() public static method

public static nonNull ( $wrappedType ) : NonNull
$wrappedType
return NonNull

resolve() public static method

public static resolve ( $type ) : mixed
$type
return mixed

string() public static method

public static string ( ) : StringType
return StringType

toString() public method

public toString ( ) : string
return string

tryInferName() protected method

protected tryInferName ( ) : null | string
return null | string

Property Details

$description public_oe property

public string|null $description
return string | null

$name public_oe property

public string $name
return string