classe Collection étends Collection (Voir la source)

Propriétés

protected array $storage

The collection store

depuis  Collection

Méthodes

__construct(array $storage = [])

Pas de description

mixed
first()

Get the first item of starage

array
last()

The last element of the list

depuis  Collection
bool
has(string $key, bool $strict = false)

Check existence of a key in the session collection

depuis  Collection
bool
isEmpty()

Check if a collection is empty.

depuis  Collection
mixed
get(string $key = null, mixed $default = null)

Allows to recover a value or value collection.

depuis  Collection
values()

Get the list of values of collection

depuis  Collection
keys()

Get the list of keys of collection

depuis  Collection
int
count()

Count the collection element.

depuis  Collection
collectionify(string $key)

To retrieve a value or value collection form d'instance de collection.

depuis  Collection
delete(string $key)

Delete an entry in the collection

depuis  Collection
mixed
set(mixed $key, mixed $value)

Modify an entry in the collection or the addition if not

depuis  Collection
void
each(callable $cb)

Browse all the values of the collection

depuis  Collection
merge(Collection|array $array)

Merge the collection with a painting or other collection

depuis  Collection
map(callable $cb)

Map

depuis  Collection
filter(callable $cb)

Filter

depuis  Collection
mixed
fill(mixed $data, int $offset)

Fill storage

depuis  Collection
reduce(callable $cb, mixed $next = null)

Reduce

depuis  Collection
string
implode(string $sep)

Implode

depuis  Collection
int|float
sum(callable $cb = null)

Sum

depuis  Collection
int|float
max(callable|null $cb = null)

Max

depuis  Collection
int|float
min(callable|null $cb = null)

Max

depuis  Collection
excepts(array $except)

Returns the key list and return an instance of Collection.

depuis  Collection
ignores(array $ignores)

Ignore the key that is given to it and return an instance of Collection.

depuis  Collection
reverse()

Reverse collection

depuis  Collection
bool
update(mixed $key, mixed $data, bool $override = false)

Update an existing value in the collection

depuis  Collection
yieldify()

Launches the collection content as generator

depuis  Collection
string
toJson(int $option = 0)

Pas de description

int
length()

Length of the collection

depuis  Collection
mixed
shift()

Deletes the first item in the collection

depuis  Collection
mixed
pop()

Deletes the last item in the collection

depuis  Collection
array
toArray()

Pas de description

array
all()

Returns the elements of the collection

depuis  Collection
push(mixed $value, mixed $key = null)

Add after the last item in the collection

depuis  Collection
mixed
__get(mixed $name)

__get

depuis  Collection
void
__set(mixed $name, mixed $value)

__set

depuis  Collection
bool
__isset(mixed $name)

__isset

depuis  Collection
void
__unset(mixed $name)

__unset

depuis  Collection
string
__toString()

Pas de description

string
jsonSerialize()

Pas de description

getIterator()

getIterator

depuis  Collection
bool
offsetExists(mixed $offset)

offsetExists

depuis  Collection
mixed
offsetGet(mixed $offset)

offsetGet

depuis  Collection
void
offsetSet(mixed $offset, mixed $value)

offsetSet

depuis  Collection
void
offsetUnset(mixed $offset)

offsetUnset

depuis  Collection
void
dropAll()

Allows you to delete all the selected recordings

Détails

__construct(array $storage = [])

Pas de description

Paramètres

array $storage

mixed first()

Get the first item of starage

Valeur de retour

mixed

array last()

The last element of the list

Valeur de retour

array

bool has(string $key, bool $strict = false)

Check existence of a key in the session collection

Paramètres

string $key
bool $strict

Valeur de retour

bool

bool isEmpty()

Check if a collection is empty.

Valeur de retour

bool

mixed get(string $key = null, mixed $default = null)

Allows to recover a value or value collection.

Paramètres

string $key
mixed $default

Valeur de retour

mixed

Collection values()

Get the list of values of collection

Valeur de retour

Collection

Collection keys()

Get the list of keys of collection

Valeur de retour

Collection

int count()

Count the collection element.

Valeur de retour

int

Collection collectionify(string $key)

To retrieve a value or value collection form d'instance de collection.

Paramètres

string $key

Valeur de retour

Collection

Collection delete(string $key)

Delete an entry in the collection

Paramètres

string $key

Valeur de retour

Collection

mixed set(mixed $key, mixed $value)

Modify an entry in the collection or the addition if not

Paramètres

mixed $key
mixed $value

Valeur de retour

mixed

void each(callable $cb)

Browse all the values of the collection

Paramètres

callable $cb

Valeur de retour

void

Collection merge(Collection|array $array)

Merge the collection with a painting or other collection

Paramètres

Collection|array $array

Valeur de retour

Collection

Exceptions

ErrorException

Collection map(callable $cb)

Map

Paramètres

callable $cb

Valeur de retour

Collection

Collection filter(callable $cb)

Filter

Paramètres

callable $cb

Valeur de retour

Collection

mixed fill(mixed $data, int $offset)

Fill storage

Paramètres

mixed $data
int $offset

Valeur de retour

mixed

Collection reduce(callable $cb, mixed $next = null)

Reduce

Paramètres

callable $cb
mixed $next

Valeur de retour

Collection

string implode(string $sep)

Implode

Paramètres

string $sep

Valeur de retour

string

int|float sum(callable $cb = null)

Sum

Paramètres

callable $cb

Valeur de retour

int|float

int|float max(callable|null $cb = null)

Max

Paramètres

callable|null $cb

Valeur de retour

int|float

int|float min(callable|null $cb = null)

Max

Paramètres

callable|null $cb

Valeur de retour

int|float

Collection excepts(array $except)

Returns the key list and return an instance of Collection.

Paramètres

array $except

Valeur de retour

Collection

Collection ignores(array $ignores)

Ignore the key that is given to it and return an instance of Collection.

Paramètres

array $ignores

Valeur de retour

Collection

Collection reverse()

Reverse collection

Valeur de retour

Collection

bool update(mixed $key, mixed $data, bool $override = false)

Update an existing value in the collection

Paramètres

mixed $key
mixed $data
bool $override

Valeur de retour

bool

Generator yieldify()

Launches the collection content as generator

Valeur de retour

Generator

string toJson(int $option = 0)

Pas de description

Paramètres

int $option

Valeur de retour

string

int length()

Length of the collection

Valeur de retour

int

mixed shift()

Deletes the first item in the collection

Valeur de retour

mixed

mixed pop()

Deletes the last item in the collection

Valeur de retour

mixed

array toArray()

Pas de description

Valeur de retour

array

array all()

Returns the elements of the collection

Valeur de retour

array

Collection push(mixed $value, mixed $key = null)

Add after the last item in the collection

Paramètres

mixed $value
mixed $key

Valeur de retour

Collection

mixed __get(mixed $name)

__get

Paramètres

mixed $name

Valeur de retour

mixed

void __set(mixed $name, mixed $value)

__set

Paramètres

mixed $name
mixed $value

Valeur de retour

void

bool __isset(mixed $name)

__isset

Paramètres

mixed $name

Valeur de retour

bool

void __unset(mixed $name)

__unset

Paramètres

mixed $name

Valeur de retour

void

string __toString()

Pas de description

Valeur de retour

string

string jsonSerialize()

Pas de description

Valeur de retour

string

ArrayIterator getIterator()

getIterator

Valeur de retour

ArrayIterator

bool offsetExists(mixed $offset)

offsetExists

Paramètres

mixed $offset

Valeur de retour

bool

mixed offsetGet(mixed $offset)

offsetGet

Paramètres

mixed $offset

Valeur de retour

mixed

void offsetSet(mixed $offset, mixed $value)

offsetSet

Paramètres

mixed $offset
mixed $value

Valeur de retour

void

void offsetUnset(mixed $offset)

offsetUnset

Paramètres

mixed $offset

Valeur de retour

void

void dropAll()

Allows you to delete all the selected recordings

Valeur de retour

void