Pneuma Framework

Config
in package

Simple Config implementation.

Table of Contents

Properties

$data  : array<string, mixed>

Methods

get()  : mixed
Retrieve an attribute.
reset()  : void
Reset data provider.
set()  : void
Set attribute.

Properties

$data

private static array<string, mixed> $data = []

Methods

get()

Retrieve an attribute.

public static get(string $name[, mixed $default = null ]) : mixed
Parameters
$name : string

The attribute name.

$default : mixed = null

Default value to return if the attribute does not exist.

reset()

Reset data provider.

public static reset() : void

set()

Set attribute.

public static set(string $name, mixed $value) : void
Parameters
$name : string

The attribute name.

$value : mixed

The value of the attribute.


        
On this page

Search results