\ MonkeyStack

Summary

Methods
Properties
Constants
__construct()
AddFirst()
AddLast()
First()
Last()
Clear()
IsEmpty()
Count()
RemoveFirst()
RemoveLast()
Backwards()
Objects()
ObjectIterator()
GetDebug()
Get()
Set()
Push()
Pop()
No public properties found
No constants found
No protected methods found
$_list
N/A
No private methods found
No private properties found
N/A

Properties

$_list

$_list : 

Type

Methods

__construct()

__construct() 

AddFirst()

AddFirst(object  $object) 

Adds an object into the beginning of the list

Parameters

object $object

AddLast()

AddLast(object  $object) 

Adds an object on the end of the list

Parameters

object $object

First()

First() : object

Returns the first object from the list

Returns

object

Last()

Last() : object

Returns the last object from the list

Returns

object

Clear()

Clear() : integer

Clears this object's objects

Returns

integer

IsEmpty()

IsEmpty() : boolean

Returns true if the object is empty or false if it isn't

Returns

boolean

Count()

Count() : integer

Returns the number of objects in this object

Returns

integer

RemoveFirst()

RemoveFirst() : object

Removes the first object from the list and returns it

Returns

object

RemoveLast()

RemoveLast() : object

Removes the last object from the list and returns it

Returns

object

Backwards()

Backwards() : array

Returns the list backwards

Returns

array —

object

Objects()

Objects() : array

Returns the list

Returns

array —

object

ObjectIterator()

ObjectIterator() : \ArrayIterator

Return new ArrayIterator of object

Returns

\ArrayIterator

GetDebug()

GetDebug() 

Returns the debug information to the immediate buffer

Get()

Get(integer  $index) : object

Returns the item at the stack index

Parameters

integer $index

Returns

object

Set()

Set(integer  $index, object  $object) 

Sets the value at the specified index

Parameters

integer $index
object $object

Push()

Push(object  $object) 

Pushes a value onto the end of the stack

Parameters

object $object

Pop()

Pop() : object

Pops the value on the end of the stack

Returns

object