Documentation

Bag implements ToSchemaJsonInterface, ContainerAwareInterface Uses ContainerAwareTrait, ToSchemaJsonTrait

Interfaces, Classes and Traits

ToSchemaJsonInterface
ContainerAwareInterface

Table of Contents

$container  : Container
$definitions  : array<string|int, mixed>
$entries  : array<string|int, mixed>
container()  : void
created()  : void
get()  : BagEntryInterface
getEntries()  : array<string|int, mixed>
getSchemaJson()  : array<string|int, mixed>
has()  : bool
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

getEntries()

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

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

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