Table of Contents
Methods
-
__call()
: Item|null
-
__construct()
: mixed
-
add()
: static
-
count()
: int
-
empty()
: bool
-
filter()
: static
-
getFirst()
: V|null
-
getItemById()
: V
-
getItemMap()
: array<string|int, V>
-
getIterator()
: ArrayIterator<int|string, V>
-
getKeys()
: array<string|int, V>
-
getValues()
: array<string|int, V>
-
map()
: array<string|int, mixed>
-
remove()
: $this
-
setTotalCount()
: static
-
totalCount()
: int
__call()
public
__call(string $name, array<string|int, mixed> $arguments) : Item|null
Parameters
-
$name
: string
-
-
$arguments
: array<string|int, mixed>
-
__construct()
public
__construct(Item ...$items) : mixed
Parameters
-
$items
: Item
-
-
throws
-
WrongStructureItemException
add()
public
add(Item $item) : static
Parameters
-
$item
: Item
-
-
throws
-
WrongStructureItemException
count()
public
count() : int
empty()
public
empty() : bool
filter()
public
filter(callable(V): bool $rule) : static
Parameters
-
$rule
: callable(V): bool
-
-
throws
-
WrongStructureItemException
getFirst()
public
getFirst() : V|null
getItemById()
public
getItemById(int $id) : V
Parameters
-
$id
: int
-
getItemMap()
public
getItemMap() : array<string|int, V>
Return values
array<string|int, V>
getIterator()
public
getIterator() : ArrayIterator<int|string, V>
Return values
ArrayIterator<int|string, V>
getKeys()
public
getKeys() : array<string|int, V>
Return values
array<string|int, V>
getValues()
public
getValues() : array<string|int, V>
Return values
array<string|int, V>
map()
public
map(callable $closure) : array<string|int, mixed>
Parameters
-
$closure
: callable
-
Return values
array<string|int, mixed>
remove()
public
remove(Item $item) : $this
Parameters
-
$item
: Item
-
setTotalCount()
public
setTotalCount(int $count) : static
Parameters
-
$count
: int
-
totalCount()
public
totalCount() : int