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 “last in, first out” or “LIFO” collection that only allows access to the
* value at the top of the structure and iterates in that order, destructively.
* @package structures
* @author Ulises Jeremias Cornejo Fandos <[email protected]>
class Stack extends DoublyLinkedList
{
* @inheritDoc
public function peek()
return $this->deque->last();
}
public function pop()
return $this->deque->pop();