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.

removeConstant(string $name)

No description

bool
hasConstant(string $name)

No description

Details

at line 27
ConstantsAware setConstants(array $consts)

Replaces all constants.

Parameters

array $consts

Return Value

ConstantsAware

at line 40
array getConstants()

No description

Return Value

array

at line 46
Constant getConstant(string $name)

No description

Parameters

string $name

Return Value

Constant

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

Adds a constant.

Parameters

string $name
mixed $value
bool $overwrite

Return Value

Constant

Exceptions

InvalidStateException

at line 67
ConstantsAware removeConstant(string $name)

No description

Parameters

string $name

Return Value

ConstantsAware

at line 74
bool hasConstant(string $name)

No description

Parameters

string $name

Return Value

bool