trait ConstantsAware

internal  
 

Methods

setConstants(array $consts)

Replaces all constants.

array
getConstants()

No description

getConstant(string $name)

No description

addConstant(string $name, mixed $value, bool $overwrite = false)

Adds a constant. If it already exists, throws an exception or overwrites it if $overwrite is true.

removeConstant(string $name)

No description

bool
hasConstant(string $name)

No description

Details

at line 29
ConstantsAware setConstants(array $consts)

Replaces all constants.

Parameters

array $consts

Return Value

ConstantsAware

at line 42
array getConstants()

No description

Return Value

array

at line 48
Constant getConstant(string $name)

No description

Parameters

string $name

Return Value

Constant

at line 57
Constant addConstant(string $name, mixed $value, bool $overwrite = false)

Adds a constant. If it already exists, throws an exception or overwrites it if $overwrite is true.

Parameters

string $name
mixed $value
bool $overwrite

Return Value

Constant

at line 68
ConstantsAware removeConstant(string $name)

No description

Parameters

string $name

Return Value

ConstantsAware

at line 75
bool hasConstant(string $name)

No description

Parameters

string $name

Return Value

bool