src/icepay_api_order.php
public function setQuantity($quantity) {
        if (empty($quantity))
            throw new Exception('Quantity must be set and cannot be empty.');

        $this->quantity = trim($quantity);

        return $this;
    }
public function setQuantity($quantity) {
        if (empty($quantity))
            throw new Exception('Quantity must be set and cannot be empty.');

        $this->quantity = trim($quantity);

        return $this;
    }
public function setQuantity ( $ quantity ) { if ( empty ( $ quantity ) ) throw new Exception ( 'Quantity must be set and cannot be empty.' ) ; $ this -> quantity = trim ( $ quantity ) ; return $ this ; }
Sets the product quantity

@since 1.0.0
@param string Contains the quantity of the product
@return \Icepay_Order_Product
@throws Exception when empty
Sets the product quantity