src/Cart.php
public function save()
    {
        $data = serialize($this->toArray());

        $this->store->put($this->id, $data);
    }
public function save()
    {
        $data = serialize($this->toArray());

        $this->store->put($this->id, $data);
    }
public function save ( ) { $ data = serialize ( $ this -> toArray ( ) ) ; $ this -> store -> put ( $ this -> id , $ data ) ; }
Save the cart state.
Save the cart state .