PHP Класс WeakMap, ClearSky

Наследование: implements Countable, implements ArrayAccess, implements Iterator
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( ) Constructs a new map
count ( ) : integer Counts the number of live entries in the map
current ( ) : mixed Returns the current value being iterated on in the map.
key ( ) : mixed Returns the object serving as key in the map, at the current iterating position.
next ( ) Advances to the next map element.
offsetExists ( object $object ) : boolean Checks whether the passed object is referenced in the map.
offsetGet ( object $object ) : mixed Returns the value pointed to by a certain object.
offsetSet ( object $object, mixed $value ) Updates the map with a new key-value pair.
offsetUnset ( object $object ) Removes an entry from the map.
rewind ( ) Rewinds the iterator to the beginning of the map.
valid ( ) : boolean Returns whether the iterator is still on a valid map element.

Описание методов

__construct() публичный Метод

Constructs a new map
public __construct ( )

count() публичный Метод

Counts the number of live entries in the map
public count ( ) : integer
Результат integer

current() публичный Метод

Returns the current value being iterated on in the map.
public current ( ) : mixed
Результат mixed

key() публичный Метод

Returns the object serving as key in the map, at the current iterating position.
public key ( ) : mixed
Результат mixed

next() публичный Метод

Advances to the next map element.
public next ( )

offsetExists() публичный Метод

Checks whether the passed object is referenced in the map.
public offsetExists ( object $object ) : boolean
$object object
Результат boolean

offsetGet() публичный Метод

Returns the value pointed to by a certain object.
public offsetGet ( object $object ) : mixed
$object object
Результат mixed

offsetSet() публичный Метод

If the key already existed in the map, the old value is replaced with the new.
public offsetSet ( object $object, mixed $value )
$object object
$value mixed

offsetUnset() публичный Метод

Removes an entry from the map.
public offsetUnset ( object $object )
$object object

rewind() публичный Метод

Rewinds the iterator to the beginning of the map.
public rewind ( )

valid() публичный Метод

Returns whether the iterator is still on a valid map element.
public valid ( ) : boolean
Результат boolean