SettingsCollection
extends Collection
in package
implements
CastsCollections
SettingsCollection
Tags
Interfaces, Classes, Traits and Enums
- CastsCollections
- CastsCollections
Table of Contents
- first() : Setting
- firstOrFail() : Setting
- from() : CastsCollections<TKey, TValue>
- fromArray() : CastsCollections<TKey, TValue>
- New collection from array.
- fromJson() : CastsCollections<TKey, TValue>
- New collection from JSON.
Methods
first()
public
first(callable $callback = null, mixed $default) : Setting
Parameters
- $callback = null : callable
- $default : mixed
Return values
Setting —firstOrFail()
public
firstOrFail(mixed $key, mixed $operator, mixed $value) : Setting
Parameters
- $key : mixed
- $operator : mixed
- $value : mixed
Return values
Setting —from()
public
static from(iteratable<string|int, mixed> $items) : CastsCollections<TKey, TValue>
Parameters
- $items : iteratable<string|int, mixed>
Tags
Return values
CastsCollections<TKey, TValue> —fromArray()
New collection from array.
public
static fromArray(array<string|int, mixed> $array) : CastsCollections<TKey, TValue>
Parameters
- $array : array<string|int, mixed>
Tags
Return values
CastsCollections<TKey, TValue> —fromJson()
New collection from JSON.
public
static fromJson(string $json) : CastsCollections<TKey, TValue>
Parameters
- $json : string