Restrict User Access

RUA_Collection
in package
implements IteratorAggregate, Countable

Interfaces, Classes, Traits and Enums

IteratorAggregate
Countable

Table of Contents

__construct()  : mixed
add()  : self
all()  : array<string|int, mixed>
count()  : mixed
filter()  : static
get()  : mixed|null
has()  : bool
is_empty()  : bool
pop()  : mixed|null
put()  : self
remove()  : self

Methods

__construct()

public __construct([mixed $items = [] ]) : mixed
Parameters
$items : mixed = []
Return values
mixed

add()

public add(mixed $value) : self
Parameters
$value : mixed
Tags
since
2.1
Return values
self

all()

public all() : array<string|int, mixed>
Tags
since
2.1
Return values
array<string|int, mixed>

count()

public count() : mixed
Tags
inheritDoc
Return values
mixed

filter()

public filter(callable $callback) : static
Parameters
$callback : callable
Tags
since
2.1
Return values
static

get()

public get(string $key[, mixed|null $default_value = null ]) : mixed|null
Parameters
$key : string
$default_value : mixed|null = null
Tags
since
2.1
Return values
mixed|null

has()

public has(string $key) : bool
Parameters
$key : string
Tags
since
2.1
Return values
bool

is_empty()

public is_empty() : bool
Tags
since
2.2
Return values
bool

pop()

public pop() : mixed|null
Tags
since
2.1
Return values
mixed|null

put()

public put(string $key, mixed $value) : self
Parameters
$key : string
$value : mixed
Tags
since
2.1
Return values
self

remove()

public remove(string $key) : self
Parameters
$key : string
Tags
since
2.1
Return values
self

Search results