Method | Description | |
---|---|---|
clearConstants ( ) | Clears all constants | |
getConstant ( string | |
Returns a constant. | |
getConstantNames ( ) : phootwork\collection\Set | Returns all constant names | |
getConstants ( ) : phootwork\collection\Map | Returns all constants | |
hasConstant ( string | |
Checks whether a constant exists | |
removeConstant ( string | |
Removes a constant | |
setConstant ( string | |
Adds a constant | |
setConstants ( array $constants ) | Sets a collection of constants |
Method | Description | |
---|---|---|
initConstants ( ) |
public getConstant ( string | |
||
$nameOrConstant | string | |
|
return |
public getConstantNames ( ) : phootwork\collection\Set | ||
return | phootwork\collection\Set |
public getConstants ( ) : phootwork\collection\Map | ||
return | phootwork\collection\Map |
public hasConstant ( string | |
||
$nameOrConstant | string | |
|
return | boolean |
public removeConstant ( string | |
||
$nameOrConstant | string | |
constant name |
public setConstant ( string | |
||
$nameOrConstant | string | |
constant name or instance |
$value | string |
public setConstants ( array $constants ) | ||
$constants | array |