PSR12
This commit is contained in:
125
src/Queue.php
125
src/Queue.php
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/** DomFramework
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
@@ -19,74 +20,74 @@ namespace Domframework;
|
||||
*/
|
||||
class Queue
|
||||
{
|
||||
/** The queue connected object
|
||||
*/
|
||||
private $queue = null;
|
||||
/** The queue connected object
|
||||
*/
|
||||
private $queue = null;
|
||||
|
||||
/** Connect to the queue
|
||||
* @param string $dsn The DSN to connect to queue
|
||||
* @return $this;
|
||||
*/
|
||||
public function connect ($dsn)
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
/** Connect to the queue
|
||||
* @param string $dsn The DSN to connect to queue
|
||||
* @return $this;
|
||||
*/
|
||||
public function connect($dsn)
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/** Add a new entry to the end of the queue
|
||||
* @param mixed $entry The entry to add
|
||||
* @return $this;
|
||||
*/
|
||||
public function add ($entry)
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
/** Add a new entry to the end of the queue
|
||||
* @param mixed $entry The entry to add
|
||||
* @return $this;
|
||||
*/
|
||||
public function add($entry)
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/** Get all the entries of the queue
|
||||
* @return array
|
||||
*/
|
||||
public function getAll ()
|
||||
{
|
||||
}
|
||||
/** Get all the entries of the queue
|
||||
* @return array
|
||||
*/
|
||||
public function getAll()
|
||||
{
|
||||
}
|
||||
|
||||
/** Get the number of entries in the queue
|
||||
*/
|
||||
public function count ()
|
||||
{
|
||||
}
|
||||
/** Get the number of entries in the queue
|
||||
*/
|
||||
public function count()
|
||||
{
|
||||
}
|
||||
|
||||
/** Clear all the entries of the queue
|
||||
* @return $this;
|
||||
*/
|
||||
public function clear ()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
/** Clear all the entries of the queue
|
||||
* @return $this;
|
||||
*/
|
||||
public function clear()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/** Get the first entry in the queue with optional removing of the entry
|
||||
* @param boolean|null $delete If true, delete the read entry
|
||||
* @return mixed Return null if there is no entry, or the first entry in the
|
||||
* queue (FIFO)
|
||||
*/
|
||||
public function getFirst ($delete = false)
|
||||
{
|
||||
}
|
||||
/** Get the first entry in the queue with optional removing of the entry
|
||||
* @param boolean|null $delete If true, delete the read entry
|
||||
* @return mixed Return null if there is no entry, or the first entry in the
|
||||
* queue (FIFO)
|
||||
*/
|
||||
public function getFirst($delete = false)
|
||||
{
|
||||
}
|
||||
|
||||
/** Get the last entry in the queue with optional removing of the entry
|
||||
* @param boolean|null $delete If true, delete the read entry
|
||||
* @return mixed Return null if there is no entry, or the last entry in the
|
||||
* queue (LIFO)
|
||||
*/
|
||||
public function getLast ($delete = false)
|
||||
{
|
||||
}
|
||||
/** Get the last entry in the queue with optional removing of the entry
|
||||
* @param boolean|null $delete If true, delete the read entry
|
||||
* @return mixed Return null if there is no entry, or the last entry in the
|
||||
* queue (LIFO)
|
||||
*/
|
||||
public function getLast($delete = false)
|
||||
{
|
||||
}
|
||||
|
||||
/** Get X entries starting at position Y
|
||||
* @param integer $start the starting position
|
||||
* @param integer $number The number of entries to get
|
||||
* @param boolean|null $delete If true, delete the read entries
|
||||
* @return array An array of mixed entries
|
||||
*/
|
||||
public function getRange ($start, $number, $delete = false)
|
||||
{
|
||||
}
|
||||
/** Get X entries starting at position Y
|
||||
* @param integer $start the starting position
|
||||
* @param integer $number The number of entries to get
|
||||
* @param boolean|null $delete If true, delete the read entries
|
||||
* @return array An array of mixed entries
|
||||
*/
|
||||
public function getRange($start, $number, $delete = false)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user