public function setQuantity($quantity) {
        if (!is_integer($quantity)) {
            throw new \Exception ("quantity must be an Integer");
        }
        if ($quantity < 0) {
            throw new \Exception ("quantity cannot be less than zero");
        }
        $this->quantity = $quantity;
    }