\ MonkeyMap

Summary

Methods
Properties
Constants
__construct()
AddFirst()
AddLast()
First()
Last()
Clear()
IsEmpty()
Count()
RemoveFirst()
RemoveLast()
Backwards()
Objects()
ObjectIterator()
GetDebug()
Get()
Set()
Remove()
Contains()
Keys()
Values()
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(object  $key) : object

Returns the object with the specified $key

Parameters

object $key

Returns

object

Set()

Set(object  $key, object  $value) 

Sets the $value at $key in the map

Parameters

object $key
object $value

Remove()

Remove(object  $key) 

Removes the value at key and the key

Parameters

object $key

Contains()

Contains(object  $key) : boolean

Checks if the $key exists and returns true if it does exist and zoro if it doesn't exist.

Parameters

object $key

Returns

boolean —

key's existance

Keys()

Keys() : array

Return array of keys

Returns

array —

array of keys

Values()

Values() : array

Return array values

Returns

array —

array of values