PHP Class Youshido\GraphQL\Config\AbstractConfig

Show file Open project: youshido/graphql Class Usage Examples

Protected Properties

Property Type Description
$contextObject
$data array
$extraFieldsAllowed
$finalClass

Public Methods

Method Description
__call ( $method, $arguments )
__construct ( array $configData, mixed $contextObject = null, boolean $finalClass = false ) TypeConfig constructor.
get ( $key, null $defaultValue = null ) : mixed | null | callable
getContextObject ( )
getContextRules ( )
getData ( )
getName ( )
getResolveFunction ( ) : null | callable
getRules ( )
getType ( )
has ( $key )
isExtraFieldsAllowed ( )
isFinalClass ( )
set ( $key, $value )
validate ( )

Protected Methods

Method Description
build ( )

Method Details

__call() public method

public __call ( $method, $arguments )

__construct() public method

TypeConfig constructor.
public __construct ( array $configData, mixed $contextObject = null, boolean $finalClass = false )
$configData array
$contextObject mixed
$finalClass boolean

build() protected method

protected build ( )

get() public method

public get ( $key, null $defaultValue = null ) : mixed | null | callable
$key
$defaultValue null
return mixed | null | callable

getContextObject() public method

public getContextObject ( )

getContextRules() public method

public getContextRules ( )

getData() public method

public getData ( )

getName() public method

public getName ( )

getResolveFunction() public method

public getResolveFunction ( ) : null | callable
return null | callable

getRules() abstract public method

abstract public getRules ( )

getType() public method

public getType ( )

has() public method

public has ( $key )

isExtraFieldsAllowed() public method

isFinalClass() public method

public isFinalClass ( )

set() public method

public set ( $key, $value )

validate() public method

public validate ( )

Property Details

$contextObject protected property

protected $contextObject

$data protected property

protected array $data
return array

$extraFieldsAllowed protected property

protected $extraFieldsAllowed

$finalClass protected property

protected $finalClass