Documentation

RequestedFields implements ContainerAwareInterface, JsonSerializable Uses ContainerAwareTrait

Interfaces, Classes and Traits

ContainerAwareInterface
JsonSerializable

Table of Contents

$container  : Container
$fields  : array<string|int, mixed>
$type  : Type
container()  : void
created()  : void
fields()  : RequestedFields
getAttributes()  : array<string|int, Attribute>
getFieldNames()  : array<string|int, mixed>
getFieldNamesForType()  : array<string|int, mixed>
getNestedField()  : RequestedFields
getRelations()  : array<string|int, Relation>
getType()  : Type
hasField()  : bool
jsonSerialize()  : mixed
typeClass()  : RequestedFields
createNestedFields()  : RequestedFields
getTypeClassByName()  : string
normalize()  : array<string|int, mixed>

Properties

Methods

getAttributes()

public getAttributes() : array<string|int, Attribute>
Return values
array<string|int, Attribute>

getFieldNames()

public getFieldNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFieldNamesForType()

public getFieldNamesForType(Type $type) : array<string|int, mixed>
Parameters
$type : Type
Return values
array<string|int, mixed>

getRelations()

public getRelations() : array<string|int, Relation>
Return values
array<string|int, Relation>

hasField()

public hasField(string $fieldName) : bool
Parameters
$fieldName : string
Return values
bool

jsonSerialize()

public jsonSerialize() : mixed
Return values
mixed

createNestedFields()

protected createNestedFields(string $TypeClass, array<string|int, mixed> $fields) : RequestedFields
Parameters
$TypeClass : string
$fields : array<string|int, mixed>
Return values
RequestedFields

getTypeClassByName()

protected getTypeClassByName([string $typeName = null ]) : string
Parameters
$typeName : string = null
Return values
string

normalize()

protected normalize(array<string|int, mixed> $fields) : array<string|int, mixed>
Parameters
$fields : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results