Documentation

Repository
in package
implements ArrayAccess, Repository

Interfaces, Classes and Traits

ArrayAccess
Repository

Table of Contents

$items  : array<string|int, mixed>
All of the configuration items.
__construct()  : void
Create a new configuration repository.
all()  : array<string|int, mixed>
Get all of the configuration items for the application.
get()  : mixed
Get the specified configuration value.
getMany()  : array<string|int, mixed>
Get many configuration values.
has()  : bool
Determine if the given configuration value exists.
offsetExists()  : bool
Determine if the given configuration option exists.
offsetGet()  : mixed
Get a configuration option.
offsetSet()  : void
Set a configuration option.
offsetUnset()  : void
Unset a configuration option.
prepend()  : void
Prepend a value onto an array configuration value.
push()  : void
Push a value onto an array configuration value.
set()  : void
Set a given configuration value.

Properties

$items

All of the configuration items.

protected array<string|int, mixed> $items = []

Methods

__construct()

Create a new configuration repository.

public __construct([array<string|int, mixed> $items = [] ]) : void
Parameters
$items : array<string|int, mixed> = []
Return values
void

all()

Get all of the configuration items for the application.

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

get()

Get the specified configuration value.

public get(array<string|int, mixed>|string $key[, mixed $default = null ]) : mixed
Parameters
$key : array<string|int, mixed>|string
$default : mixed = null
Return values
mixed

getMany()

Get many configuration values.

public getMany(array<string|int, mixed> $keys) : array<string|int, mixed>
Parameters
$keys : array<string|int, mixed>
Return values
array<string|int, mixed>

has()

Determine if the given configuration value exists.

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

offsetExists()

Determine if the given configuration option exists.

public offsetExists(string $key) : bool
Parameters
$key : string
Return values
bool

offsetGet()

Get a configuration option.

public offsetGet(string $key) : mixed
Parameters
$key : string
Return values
mixed

offsetSet()

Set a configuration option.

public offsetSet(string $key, mixed $value) : void
Parameters
$key : string
$value : mixed
Return values
void

offsetUnset()

Unset a configuration option.

public offsetUnset(string $key) : void
Parameters
$key : string
Return values
void

prepend()

Prepend a value onto an array configuration value.

public prepend(string $key, mixed $value) : void
Parameters
$key : string
$value : mixed
Return values
void

push()

Push a value onto an array configuration value.

public push(string $key, mixed $value) : void
Parameters
$key : string
$value : mixed
Return values
void

set()

Set a given configuration value.

public set(array<string|int, mixed>|string $key[, mixed $value = null ]) : void
Parameters
$key : array<string|int, mixed>|string
$value : mixed = null
Return values
void

Search results