ConfigValue
class ConfigValue
Properties
protected bool | $isDeduplicated | ||
protected string | $name | ||
protected int | $useCount | ||
protected array|Code|Dictionary | $value | ||
protected string | $varName |
Methods
Mark this value as deduplicated if it's been used more than once
Return the number of times this value has been used or referenced
Return the PHP value held by this instance
Return the variable name assigned to this value
Increment the use counter
Return whether this value is marked as deduplicated
Decrement the use counter of this value as well as the values it contains
Details
at line 43
__construct(array|Code|Dictionary $value, string $varName)
Constructor
at line 54
void
deduplicate()
Mark this value as deduplicated if it's been used more than once
at line 68
int
getUseCount()
Return the number of times this value has been used or referenced
at line 78
array|Code|Dictionary
getValue()
Return the PHP value held by this instance
at line 88
string
getVarName()
Return the variable name assigned to this value
at line 98
void
incrementUseCount()
Increment the use counter
at line 108
bool
isDeduplicated()
Return whether this value is marked as deduplicated
at line 119
protected void
decrementUseCount(int $step = 1)
Decrement the use counter of this value as well as the values it contains