class ConfigValue

Properties

protected bool $isDeduplicated
protected string $name
protected int $useCount
protected array|Code|Dictionary $value
protected string $varName

Methods

__construct(array|Code|Dictionary $value, string $varName)

Constructor

void
deduplicate()

Mark this value as deduplicated if it's been used more than once

int
getUseCount()

Return the number of times this value has been used or referenced

getValue()

Return the PHP value held by this instance

string
getVarName()

Return the variable name assigned to this value

void
incrementUseCount()

Increment the use counter

bool
isDeduplicated()

Return whether this value is marked as deduplicated

void
decrementUseCount(int $step = 1)

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

Parameters

array|Code|Dictionary $value

Original value

string $varName

at line 54
void deduplicate()

Mark this value as deduplicated if it's been used more than once

Return Value

void

at line 68
int getUseCount()

Return the number of times this value has been used or referenced

Return Value

int

at line 78
array|Code|Dictionary getValue()

Return the PHP value held by this instance

Return Value

array|Code|Dictionary

at line 88
string getVarName()

Return the variable name assigned to this value

Return Value

string

at line 98
void incrementUseCount()

Increment the use counter

Return Value

void

at line 108
bool isDeduplicated()

Return whether this value is marked as deduplicated

Return Value

bool

at line 119
protected void decrementUseCount(int $step = 1)

Decrement the use counter of this value as well as the values it contains

Parameters

int $step

How much to remove from the counter

Return Value

void