queue = array(); } /** * {@inheritdoc} */ public function enqueue($item) { return (bool)array_push($this->queue, $item); } /** * {@inheritdoc} */ public function dequeue() { return array_shift($this->queue); } /** * {@inheritdoc} */ public function clear() { $this->queue = array(); } /** * {@inheritdoc} */ public function size() { return count($this->queue); } }