ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
CyclicReferenceStack.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Calculation\Engine
;
4
5
class
CyclicReferenceStack
6
{
12
private
$stack
= [];
13
19
public
function
count
()
20
{
21
return
count
($this->stack);
22
}
23
29
public
function
push
($value): void
30
{
31
$this->stack[$value] = $value;
32
}
33
39
public
function
pop
()
40
{
41
return
array_pop($this->stack);
42
}
43
51
public
function
onStack
($value)
52
{
53
return
isset($this->stack[$value]);
54
}
55
59
public
function
clear
(): void
60
{
61
$this->stack = [];
62
}
63
69
public
function
showStack
()
70
{
71
return
$this->stack
;
72
}
73
}
PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack\clear
clear()
Clear the stack.
Definition:
CyclicReferenceStack.php:59
PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack\push
push($value)
Push a new entry onto the stack.
Definition:
CyclicReferenceStack.php:29
PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack\pop
pop()
Pop the last entry from the stack.
Definition:
CyclicReferenceStack.php:39
PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack
Definition:
CyclicReferenceStack.php:5
PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack\$stack
$stack
Definition:
CyclicReferenceStack.php:12
PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack\showStack
showStack()
Return an array of all entries on the stack.
Definition:
CyclicReferenceStack.php:69
PhpOffice\PhpSpreadsheet\Calculation\Engine
Definition:
CyclicReferenceStack.php:3
PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack\count
count()
Return the number of entries on the stack.
Definition:
CyclicReferenceStack.php:19
PhpOffice\PhpSpreadsheet\Calculation\Engine\CyclicReferenceStack\onStack
onStack($value)
Test to see if a specified entry exists on the stack.
Definition:
CyclicReferenceStack.php:51
php
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Calculation
Engine
CyclicReferenceStack.php
Generated on Thu Jan 30 2025 19:01:22 for ILIAS by
1.8.13 (using
Doxyfile
)