Documentation

FieldBag extends Bag

Table of Contents

$container  : Container
$original  : FieldBag|null
$definitions  : array<string|int, mixed>
$entries  : array<string|int, mixed>
allow()  : FieldBag
attribute()  : FieldBag
container()  : void
created()  : void
get()  : Field
get()  :
getEntries()  :
getEntries()  : array<string|int, mixed>
getEntrySchemaJson()  : array<string|int, mixed>|null
getRelation()  : Relation
getSchemaJson()  : array<string|int, mixed>
has()  : bool
original()  : FieldBag
relation()  : FieldBag
remove()  : Bag
set()  : Bag
setDefinition()  : Bag
toSchemaJson()  : array<string|int, mixed>

Properties

$definitions

private array<string|int, mixed> $definitions = []

$entries

private array<string|int, mixed> $entries = []

Methods

allow()

public allow(array<string|int, mixed> $names) : FieldBag
Parameters
$names : array<string|int, mixed>
Return values
FieldBag

attribute()

public attribute(string $name, mixed $classOrCallback) : FieldBag
Parameters
$name : string
$classOrCallback : mixed
Return values
FieldBag

get()

public get(string $name[, Closure $callback = null ]) : Field
Parameters
$name : string
$callback : Closure = null
Return values
Field

get()

public get(string $name) :
Parameters
$name : string
Return values

getEntries()

public getEntries() :
Return values

getEntries()

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

getEntrySchemaJson()

public getEntrySchemaJson(Field $field, TypeRegistry $typeRegistry) : array<string|int, mixed>|null
Parameters
$field : Field
$typeRegistry : TypeRegistry
Return values
array<string|int, mixed>|null

getRelation()

public getRelation(string $name[, Closure $callback = null ]) : Relation
Parameters
$name : string
$callback : Closure = null
Return values
Relation

getSchemaJson()

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

has()

public has(string $name) : bool
Parameters
$name : string
Return values
bool

relation()

public relation(string $name, string $RelatedTypeClass, mixed $classOrCallback) : FieldBag
Parameters
$name : string
$RelatedTypeClass : string
$classOrCallback : mixed
Return values
FieldBag

remove()

public remove(string $name) : Bag
Parameters
$name : string
Return values
Bag

setDefinition()

public setDefinition(string $name, mixed $classOrCallback[, Closure $createCallback = null ]) : Bag
Parameters
$name : string
$classOrCallback : mixed
$createCallback : Closure = null
Return values
Bag

toSchemaJson()

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

Search results