lib/onepay/Item.php
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;
    }
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;
    }
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 ; }
Set the quantity for an instance of Item
Set the quantity for an instance of Item