. */ class Staple_Data_Queue extends Staple_Data_LinkedList { /** * Queue shift function adds to the end of the queue. * Alias of Staple_Data_LinkedList::addBack() * @param mixed $data */ public function shift($data) { $this->addBack($data); return $this; } /** * Queue unshift function removes and returns the front element of the list. * Alias of Staple_Data_LinkedList::removeFront() * @return mixed */ public function unshift() { return $this->removeFront(); } }