53        $stackItem = $this->
getStackItem(
$type, $value, $reference, $storeKey, $onlyIf, $onlyIfNot);
 
   55        $this->stack[$this->
count++] = $stackItem;
 
   57        if (
$type == 
'Function') {
 
   59            if ($localeFunction != $value) {
 
   60                $this->stack[($this->
count - 1)][
'localeValue'] = $localeFunction;
 
   76            'reference' => $reference,
 
   79        if (isset($storeKey)) {
 
   80            $stackItem[
'storeKey'] = $storeKey;
 
   84            $stackItem[
'onlyIf'] = $onlyIf;
 
   87        if (isset($onlyIfNot)) {
 
   88            $stackItem[
'onlyIfNot'] = $onlyIfNot;
 
  101        if ($this->count > 0) {
 
  102            return $this->stack[--$this->count];
 
  117        if ($this->count - 
$n < 0) {
 
  121        return $this->stack[$this->count - 
$n];
 
  136        foreach ($this->stack as 
$index => $item) {
 
  137            if (
$index > $this->count - 1) {
 
  140            $value = $item[
'value'] ?? 
'no value';
 
  141            while (is_array($value)) {
 
  142                $value = array_pop($value);
 
  144            $str .= $value . 
' |> ';
 
An exception for terminatinating execution or to throw for unit testing.
static localeFunc($function)
push( $type, $value, $reference=null, $storeKey=null, $onlyIf=null, $onlyIfNot=null)
Push a new entry onto the stack.
pop()
Pop the last entry from the stack.
getStackItem( $type, $value, $reference=null, $storeKey=null, $onlyIf=null, $onlyIfNot=null)
count()
Return the number of entries on the stack.
last($n=1)
Return an entry from the stack without removing it.