SharedQueue

php\util\SharedQueue

extends: php\util\SharedCollection

Class SharedQueue

Methods


__construct($array)
Parameters:
  • $arrayarray, Traversable - (optional)
isEmpty()
Returns:bool
count()
Returns:int
clear()

Remove all elements.

Returns:void
add($value)
Parameters:
  • $valuemixed
Returns:

bool

peek()
Returns:mixed
poll()

Retrieves and removes the head of this queue.

Returns:mixed