Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (40 sloc) 754 Bytes
<?php
namespace DALMP\Queue;
/**
* QueueInterface
*
* @author Nicolas Embriz <nbari@dalmp.com>
* @package DALMP
* @license BSD License
* @version 3.0.3
*/
interface QueueInterface
{
/**
* enqueue
*
* @param string $value
* @return boolean
*/
public function enqueue($value);
/**
* dequeue
*
* @param int $limit returns {$limit} entries on the queue in ASC order
* @return array
*/
public function dequeue($limit = false);
/**
* delete element from queue
*
* @param string $key
* @return boolean
*/
public function delete($key);
/**
* X execute/call custom methods
*
* @return queue object
*/
public function X();
}