Exemplo n.º 1
0
 /**
  * Returns the data
  *
  * @return mixed
  */
 public function getData()
 {
     $data = $this->session->get('checkout');
     if (!$data) {
         return [];
     }
     return $data;
 }
Exemplo n.º 2
0
 /**
  * Get the carts content, if there is no cart content set yet, return a new empty Collection
  *
  * @return Subbly\Shoppingcart\CartCollection
  */
 protected function getContent()
 {
     $content = $this->session->has($this->getInstance()) ? $this->session->get($this->getInstance()) : new CartCollection();
     return $content;
 }