/** * Retrieve the cart contents as an array * * @return array An array of items */ public function &contentsArray() { return $this->store->data(true); }