Sgss_Collection_Stack_Abstract
+ Sgss_Collection_Array_Stack
|
$_elements
Elements in this queue |
|
$_max
Maximum number of elements |
|
$_size
The number of elements in this stack |
|
__construct ([int|null $max = null])
The constructor |
mixed|null |
peek ()
Retrieves the element at the top of this stack without removing it |
mixed|null |
pop ()
Retrieves and removes the element at the top of this stack |
boolean |
push (mixed $element)
Pushes the specified element at the top of this stack |
int |
size ()
Returns the number of elements in this stack |
Elements in this queue
protected array $_elements
Maximum number of elements
protected int $_max = 0x7fffffff
The number of elements in this stack
protected int $_size = 0
The constructor
int|null $max
Maximum number of elements
public __construct ([int|null $max = null])
Retrieves the element at the top of this stack without removing it
public mixed|null peek ()
Retrieves and removes the element at the top of this stack
public mixed|null pop ()
Pushes the specified element at the top of this stack
mixed $element
Element to be pushed
public boolean push (mixed $element)
Returns the number of elements in this stack
public int size ()