InstanceMap
extends Map
Table of Contents
Constants
-
DATE_FORMAT_FOR_KEY
= 'Ymd'
Methods
-
__construct()
: mixed
-
add()
: $this
-
addItems()
: Collection
-
count()
: int
-
fetch()
: mixed
-
getCollection()
: array<string|int, mixed>
-
getItem()
: mixed
-
getItemsByKeys()
: $this
-
getIterator()
: ArrayIterator
-
getKeyByDate()
: string
-
has()
: bool
-
remove()
: $this
-
rewindGenerator()
: void
-
updateItem()
: $this
public
mixed
DATE_FORMAT_FOR_KEY
= 'Ymd'
__construct()
public
__construct([array<string|int, mixed> $collection = [] ]) : mixed
Parameters
-
$collection
: array<string|int, mixed>
= []
-
add()
public
add(mixed $item[, mixed $key = null ]) : $this
Parameters
-
$item
: mixed
-
-
$key
: mixed
= null
-
-
throws
-
ArgumentException
addItems()
public
addItems(array<string|int, mixed> $items) : Collection
Parameters
-
$items
: array<string|int, mixed>
-
-
throws
-
ArgumentException
count()
public
count() : int
fetch()
public
fetch() : mixed
-
throws
-
BaseException
getCollection()
public
getCollection() : array<string|int, mixed>
Return values
array<string|int, mixed>
getItem()
public
getItem(mixed $key) : mixed
Parameters
-
$key
: mixed
-
getItemsByKeys()
public
getItemsByKeys(array<string|int, mixed> $keys) : $this
Parameters
-
$keys
: array<string|int, mixed>
-
getIterator()
public
getIterator() : ArrayIterator
Return values
ArrayIterator
getKeyByDate()
public
static getKeyByDate(Date $originalDate) : string
Parameters
-
$originalDate
: Date
-
has()
public
has(mixed $key) : bool
Parameters
-
$key
: mixed
-
remove()
public
remove(mixed $key) : $this
Parameters
-
$key
: mixed
-
rewindGenerator()
public
rewindGenerator() : void
updateItem()
public
updateItem(mixed $item, mixed $key) : $this
Parameters
-
$item
: mixed
-
-
$key
: mixed
-