PHP Interface Phive\Queue\Queue

Inheritance: extends Countable
Afficher le fichier Open project: rybakit/phive-queue Interface Usage Examples

Méthodes publiques

Méthode Description
clear ( ) Removes all items from the queue.
pop ( ) : mixed Removes an item from the queue and returns it.
push ( mixed $item, mixed $eta = null ) Adds an item to the queue.

Method Details

clear() public méthode

Removes all items from the queue.
public clear ( )

pop() public méthode

Removes an item from the queue and returns it.
public pop ( ) : mixed
Résultat mixed

push() public méthode

Adds an item to the queue.
public push ( mixed $item, mixed $eta = null )
$item mixed An item to be added.
$eta mixed The earliest time that an item can be popped.