for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Mbh\Collection;
/**
* MBHFramework
*
* @link https://github.com/MBHFramework/mbh-framework
* @copyright Copyright (c) 2017 Ulises Jeremias Cornejo Fandos
* @license https://github.com/MBHFramework/mbh-framework/blob/master/LICENSE (MIT License)
*/
* A “first in, first out” or “FIFO” collection that only allows access to the
* value at the front of the queue and iterates in that order, destructively.
* @package structures
* @author Ulises Jeremias Cornejo Fandos <[email protected]>
class Queue extends DoublyLinkedList
{
* @inheritDoc
public function peek()
return $this->deque->first();
}
public function pop()
return $this->deque->shift();