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 29
ConstantsAware
setConstants(array $consts)
Replaces all constants.
at line 42
array
getConstants()
No description
at line 48
Constant
getConstant(string $name)
No description
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.
at line 68
ConstantsAware
removeConstant(string $name)
No description
at line 75
bool
hasConstant(string $name)
No description