From c4dd7a1a684490673e25aaf4fabec5df138854c4 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Thu, 14 Mar 2013 05:42:27 +0000 Subject: Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2. --- ext/spl/internal/splqueue.inc | 71 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 ext/spl/internal/splqueue.inc (limited to 'ext/spl/internal/splqueue.inc') diff --git a/ext/spl/internal/splqueue.inc b/ext/spl/internal/splqueue.inc new file mode 100644 index 0000000..368a259 --- /dev/null +++ b/ext/spl/internal/splqueue.inc @@ -0,0 +1,71 @@ +_it_mode = $mode; + } + + /** @return the first element of the queue. + * @note dequeue is an alias of push() + * @see splDoublyLinkedList::push() + */ + public function dequeue() + { + return parent::shift(); + } + + /** Pushes an element at the end of the queue. + * @param $data variable to add to the queue. + * @note enqueue is an alias of shift() + * @see splDoublyLinkedList::shift() + */ + public function enqueue($data) + { + return parent::push($data); + } +} + +?> -- cgit v1.2.1