Documentation

Stack
in package

Table of Contents

Properties

$branchPruner  : BranchPruner
$count  : int
Count of entries in the parser stack.
$stack  : array<string|int, mixed>
The parser stack for formulae.

Methods

__construct()  : mixed
clear()  : void
Clear the stack.
count()  : int
Return the number of entries on the stack.
getStackItem()  : array<string|int, mixed>
last()  : array<string|int, mixed>|null
Return an entry from the stack without removing it.
pop()  : array<string|int, mixed>|null
Pop the last entry from the stack.
push()  : void
Push a new entry onto the stack.
pushStackItem()  : void

Properties

$count

Count of entries in the parser stack.

private int $count = 0

$stack

The parser stack for formulae.

private array<string|int, mixed> $stack = []

Methods

clear()

Clear the stack.

public clear() : void

count()

Return the number of entries on the stack.

public count() : int
Return values
int

getStackItem()

public getStackItem(string $type, mixed $value[, string|null $reference = null ]) : array<string|int, mixed>
Parameters
$type : string
$value : mixed
$reference : string|null = null
Return values
array<string|int, mixed>

last()

Return an entry from the stack without removing it.

public last([int $n = 1 ]) : array<string|int, mixed>|null
Parameters
$n : int = 1
Return values
array<string|int, mixed>|null

pop()

Pop the last entry from the stack.

public pop() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

push()

Push a new entry onto the stack.

public push(string $type, mixed $value[, string|null $reference = null ]) : void
Parameters
$type : string
$value : mixed
$reference : string|null = null

pushStackItem()

public pushStackItem(array<string|int, mixed> $stackItem) : void
Parameters
$stackItem : array<string|int, mixed>

        
On this page

Search results