/** * Checkout cart */ public function checkOut($drop) { if (!empty($this->storage->db)) { $this->storage->lock($drop, $this); } else { $this->deleteAll(); } }