Elgg  Version 6.1
Queue.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Queue;
4 
11 interface Queue {
12 
19  public function enqueue($item);
20 
26  public function dequeue();
27 
33  public function clear();
34 
40  public function size();
41 }
if(!$items) $item
Definition: delete.php:13
enqueue($item)
Add an item to the queue.
Queue interface.
Definition: Queue.php:11
clear()
Clear all items from the queue.
size()
Get the size of the queue.
dequeue()
Remove an item from the queue.