ManagerInterface
in
Manager interface
Tags
Table of Contents
Methods
- __get() : mixed
- Get an item
- __isset() : bool
- Determine if an item exists
- __set() : void
- Set an item
- __unset() : void
- Unset an item
- addItem() : static
- Add an item
- addItems() : static
- Add items
- count() : int
- Return count
- getItem() : mixed
- Get an item
- getIterator() : ArrayIterator
- Get iterator
- hasItem() : bool
- Determine whether the manager has an item
- offsetExists() : bool
- Determine if an item exists
- offsetGet() : mixed
- Get an item
- offsetSet() : void
- Set an item
- offsetUnset() : void
- Unset an item
- removeItem() : static
- Remove an item
- setItems() : static
- Set items
Methods
__get()
Get an item
public
__get(string $name) : mixed
Parameters
- $name : string
__isset()
Determine if an item exists
public
__isset(string $name) : bool
Parameters
- $name : string
Return values
bool__set()
Set an item
public
__set(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
__unset()
Unset an item
public
__unset(string $name) : void
Parameters
- $name : string
addItem()
Add an item
public
addItem(mixed $item[, mixed $name = null ]) : static
Parameters
- $item : mixed
- $name : mixed = null
Return values
staticaddItems()
Add items
public
addItems(array<string|int, mixed> $items) : static
Parameters
- $items : array<string|int, mixed>
Return values
staticcount()
Return count
public
count() : int
Return values
intgetItem()
Get an item
public
getItem(mixed $name) : mixed
Parameters
- $name : mixed
getIterator()
Get iterator
public
getIterator() : ArrayIterator
Return values
ArrayIteratorhasItem()
Determine whether the manager has an item
public
hasItem(string $name) : bool
Parameters
- $name : string
Return values
booloffsetExists()
Determine if an item exists
public
offsetExists(string $offset) : bool
Parameters
- $offset : string
Return values
booloffsetGet()
Get an item
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
offsetSet()
Set an item
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
Unset an item
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
removeItem()
Remove an item
public
removeItem(mixed $name) : static
Parameters
- $name : mixed
Return values
staticsetItems()
Set items
public
setItems(array<string|int, mixed> $items) : static
Parameters
- $items : array<string|int, mixed>