SectionConnectionMap extends EntityMap
Wrapper for working with entities that have implemented the interface EntityInterface
Table of Contents
Methods
- __construct() : mixed
- add() : self
- addItems() : self
- count() : int
- fetch() : SectionConnection
- getCollection() : array<string|int, SectionConnection>
- getItem() : SectionConnection
- getItemsByKeys() : self
- getIterator() : ArrayIterator
- has() : bool
- remove() : $this
- rewindGenerator() : void
- updateItem() : self
Methods
__construct()
public
__construct([array<string|int, mixed> $collection = [] ]) : mixed
Parameters
- $collection : array<string|int, mixed> = []
add()
public
add(SectionConnection $item[, mixed $key = = 'null' ]) : self
Parameters
- $item : SectionConnection
- $key : mixed = = 'null'
Return values
selfaddItems()
public
addItems(array<string|int, mixed> $items) : self
Parameters
- $items : array<string|int, mixed>
Return values
selfcount()
public
count() : int
Return values
intfetch()
public
fetch() : SectionConnection
Return values
SectionConnectiongetCollection()
public
getCollection() : array<string|int, SectionConnection>
Return values
array<string|int, SectionConnection>getItem()
public
getItem(mixed $key) : SectionConnection
Parameters
- $key : mixed
Return values
SectionConnectiongetItemsByKeys()
public
getItemsByKeys(array<string|int, mixed> $key) : self
Parameters
- $key : array<string|int, mixed>
Return values
selfgetIterator()
public
getIterator() : ArrayIterator
Return values
ArrayIteratorhas()
public
has(mixed $key) : bool
Parameters
- $key : mixed
Return values
boolremove()
public
remove(mixed $key) : $this
Parameters
- $key : mixed
Return values
$thisrewindGenerator()
public
rewindGenerator() : void
updateItem()
public
updateItem(SectionConnection $item, mixed $key) : self
Parameters
- $item : SectionConnection
- $key : mixed