ConstantsAware
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 30
ConstantsAware
setConstants(array $consts)
Replaces all constants.
at line 43
array
getConstants()
No description
at line 49
Constant
getConstant(string $name)
No description
at line 58
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.
at line 69
ConstantsAware
removeConstant(string $name)
No description
at line 76
bool
hasConstant(string $name)
No description