BranchPruner
Table of Contents
- $braceDepthMap : array<string|int, int>
- $branchPruningEnabled : bool
- $conditionMap : array<string|int, bool>
- $currentCondition : null|string
- $currentOnlyIf : null|string
- $currentOnlyIfNot : null|string
- $elseMap : array<string|int, bool>
- $pendingStoreKey : string|null
- currently pending storeKey (last item of the storeKeysStack.
- $previousStoreKey : null|string
- $storeKeysStack : array<string|int, string>
- $thenMap : array<string|int, bool>
- $branchStoreKeyCounter : int
- Used to generate unique store keys.
- __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
= true
$conditionMap
protected
array<string|int, bool>
$conditionMap
= []
$currentCondition
protected
null|string
$currentCondition
$currentOnlyIf
protected
null|string
$currentOnlyIf
$currentOnlyIfNot
protected
null|string
$currentOnlyIfNot
$elseMap
protected
array<string|int, bool>
$elseMap
= []
$pendingStoreKey
currently pending storeKey (last item of the storeKeysStack.
protected
string|null
$pendingStoreKey
$previousStoreKey
protected
null|string
$previousStoreKey
$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
Return values
mixed —argumentSeparator()
public
argumentSeparator() : void
Return values
void —clearBranchStore()
public
clearBranchStore() : void
Return values
void —closingBrace()
public
closingBrace(mixed $value) : void
Parameters
- $value : mixed
Return values
void —currentCondition()
public
currentCondition() : string|null
Return values
string|null —currentOnlyIf()
public
currentOnlyIf() : string|null
Return values
string|null —currentOnlyIfNot()
public
currentOnlyIfNot() : string|null
Return values
string|null —decrementDepth()
public
decrementDepth() : void
Return values
void —functionCall()
public
functionCall(string $functionName) : void
Parameters
- $functionName : string
Return values
void —incrementDepth()
public
incrementDepth() : void
Return values
void —initialiseForLoop()
public
initialiseForLoop() : void
Return values
void —getUnusedBranchStoreKey()
private
getUnusedBranchStoreKey() : string
Return values
string —initialiseCondition()
private
initialiseCondition() : void
Return values
void —initialiseElse()
private
initialiseElse() : void
Return values
void —initialiseThen()
private
initialiseThen() : void