SharedQueue¶
-
php\util\SharedQueue
extends: php\util\SharedCollection
Class SharedQueue
Methods
__construct
($array)¶
Parameters:
- $array – array, Traversable - (optional)
isEmpty
()¶
Returns: bool
count
()¶
Returns: int
clear
()¶Remove all elements.
Returns: void
add
($value)¶
Parameters:
- $value – mixed
Returns: bool
peek
()¶
Returns: mixed
poll
()¶Retrieves and removes the head of this queue.
Returns: mixed