PHP Trait Youshido\GraphQL\Config\Traits\FieldsAwareConfigTrait

Mostra file Open project: youshido/graphql

Protected Properties

Property Type Description
$fields

Public Methods

Method Description
addField ( Youshido\GraphQL\Field\FieldInterface | string $field, mixed $fieldInfo = null )
addFields ( array $fieldsList )
applyInterface ( AbstractInterfaceType $interfaceType ) Add fields from passed interface
buildFields ( )
getField ( $name ) : Field
getFields ( ) : Field[]
hasField ( $name ) : boolean
hasFields ( )
removeField ( $name )

Protected Methods

Method Description
buildFieldConfig ( $name, $info = null )

Method Details

addField() public method

public addField ( Youshido\GraphQL\Field\FieldInterface | string $field, mixed $fieldInfo = null )
$field Youshido\GraphQL\Field\FieldInterface | string Field name or Field Object
$fieldInfo mixed Field Type or Field Config array

addFields() public method

public addFields ( array $fieldsList )
$fieldsList array

applyInterface() public method

Add fields from passed interface
public applyInterface ( AbstractInterfaceType $interfaceType )
$interfaceType Youshido\GraphQL\Type\InterfaceType\AbstractInterfaceType

buildFieldConfig() protected method

protected buildFieldConfig ( $name, $info = null )

buildFields() public method

public buildFields ( )

getField() public method

public getField ( $name ) : Field
$name
return Youshido\GraphQL\Field\Field

getFields() public method

public getFields ( ) : Field[]
return Youshido\GraphQL\Field\Field[]

hasField() public method

public hasField ( $name ) : boolean
$name
return boolean

hasFields() public method

public hasFields ( )

removeField() public method

public removeField ( $name )

Property Details

$fields protected_oe property

protected $fields