PHP Class Youshido\GraphQL\Type\Enum\AbstractEnumType

Inheritance: extends Youshido\GraphQL\Type\AbstractType, use trait Youshido\GraphQL\Type\Traits\AutoNameTrait, use trait Youshido\GraphQL\Config\Traits\ConfigAwareTrait
Show file Open project: youshido/graphql

Public Methods

Method Description
__construct ( $config = [] ) ObjectType constructor.
getKind ( ) : String
getValues ( ) : array
isValidValue ( $value ) : boolean
parseValue ( $value )
serialize ( $value )

Method Details

__construct() public method

ObjectType constructor.
public __construct ( $config = [] )
$config

getKind() public method

public getKind ( ) : String
return String predefined type kind

getValues() abstract public method

abstract public getValues ( ) : array
return array

isValidValue() public method

public isValidValue ( $value ) : boolean
$value mixed
return boolean

parseValue() public method

public parseValue ( $value )

serialize() public method

public serialize ( $value )