BranchPruner
in package
Table of Contents
Properties
- $braceDepthMap : array<string|int, int>
- $branchPruningEnabled : bool
- $conditionMap : array<string|int, bool>
- $currentCondition : string|null
- $currentOnlyIf : string|null
- $currentOnlyIfNot : string|null
- $elseMap : array<string|int, bool>
- $pendingStoreKey : string|null
- currently pending storeKey (last item of the storeKeysStack.
- $previousStoreKey : string|null
- $storeKeysStack : array<string|int, string>
- $thenMap : array<string|int, bool>
- $branchStoreKeyCounter : int
- Used to generate unique store keys.
Methods
- __construct() : mixed
- argumentSeparator() : void
- clearBranchStore() : void
- closingBrace() : void
- currentCondition() : string|null
- currentOnlyIf() : string|null
- currentOnlyIfNot() : string|null
- decrementDepth() : void
- functionCall() : void
- incrementDepth() : void
- initialiseForLoop() : void
- getUnusedBranchStoreKey() : string
- initialiseCondition() : void
- initialiseElse() : void
- initialiseThen() : void
Properties
$braceDepthMap
protected
array<string|int, int>
$braceDepthMap
= []
$branchPruningEnabled
protected
bool
$branchPruningEnabled
$conditionMap
protected
array<string|int, bool>
$conditionMap
= []
$currentCondition
protected
string|null
$currentCondition
= null
$currentOnlyIf
protected
string|null
$currentOnlyIf
= null
$currentOnlyIfNot
protected
string|null
$currentOnlyIfNot
= null
$elseMap
protected
array<string|int, bool>
$elseMap
= []
$pendingStoreKey
currently pending storeKey (last item of the storeKeysStack.
protected
string|null
$pendingStoreKey
= null
$previousStoreKey
protected
string|null
$previousStoreKey
= null
$storeKeysStack
protected
array<string|int, string>
$storeKeysStack
= []
$thenMap
protected
array<string|int, bool>
$thenMap
= []
$branchStoreKeyCounter
Used to generate unique store keys.
private
int
$branchStoreKeyCounter
= 0
Methods
__construct()
public
__construct(bool $branchPruningEnabled) : mixed
Parameters
- $branchPruningEnabled : bool
argumentSeparator()
public
argumentSeparator() : void
clearBranchStore()
public
clearBranchStore() : void
closingBrace()
public
closingBrace(mixed $value) : void
Parameters
- $value : mixed
currentCondition()
public
currentCondition() : string|null
Return values
string|nullcurrentOnlyIf()
public
currentOnlyIf() : string|null
Return values
string|nullcurrentOnlyIfNot()
public
currentOnlyIfNot() : string|null
Return values
string|nulldecrementDepth()
public
decrementDepth() : void
functionCall()
public
functionCall(string $functionName) : void
Parameters
- $functionName : string
incrementDepth()
public
incrementDepth() : void
initialiseForLoop()
public
initialiseForLoop() : void
getUnusedBranchStoreKey()
private
getUnusedBranchStoreKey() : string
Return values
stringinitialiseCondition()
private
initialiseCondition() : void
initialiseElse()
private
initialiseElse() : void
initialiseThen()
private
initialiseThen() : void