Configuration implements Configuration
Interfaces, Classes and Traits
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.
- has() : bool
- Determine if the given configuration value exists.
- set() : void
- Set a given configuration value.
- load() : array<string|int, mixed>
- Load the configuration file.
Properties
$items
All of the configuration items.
protected
array<string|int, mixed>
$items
= []
Tags
Methods
__construct()
Create a new configuration repository.
public
__construct([array<string|int, mixed> $items = [] ]) : void
Parameters
- $items : array<string|int, mixed> = []
Tags
Return values
void —all()
Get all of the configuration items for the application.
public
all() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —get()
Get the specified configuration value.
public
get(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
Tags
Return values
mixed —has()
Determine if the given configuration value exists.
public
has(string $key) : bool
Parameters
- $key : string
Tags
Return values
bool —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
Tags
Return values
void —load()
Load the configuration file.
private
load() : array<string|int, mixed>