public function clear($save = true): self
    {
        $this->items = [];
        $save && $this->storage->save($this);

        return $this;
    }
public function clear($save = true): self
    {
        $this->items = [];
        $save && $this->storage->save($this);

        return $this;
    }
public function clear ( $ save = true ) : self { $ this -> items = [ ] ; $ save && $ this -> storage -> save ( $ this ) ; return $ this ; }
Delete all items from the cart

@param bool $save

@return $this
Delete all items from the cart