public function setQuantityPaymentTypes( $quantityPaymentTypes )
    {
        if (preg_match( '/^\d+$/', $quantityPaymentTypes ) !== 1) {
            throw new InvalidArgumentException( sprintf( 'Payment types quantity should be a non-negative integer (%s)',
                $quantityPaymentTypes ) );
        }

        $this->quantityPaymentTypes = intval( $quantityPaymentTypes );

        return $this;
    }
public function setQuantityPaymentTypes( $quantityPaymentTypes )
    {
        if (preg_match( '/^\d+$/', $quantityPaymentTypes ) !== 1) {
            throw new InvalidArgumentException( sprintf( 'Payment types quantity should be a non-negative integer (%s)',
                $quantityPaymentTypes ) );
        }

        $this->quantityPaymentTypes = intval( $quantityPaymentTypes );

        return $this;
    }
@param  int $quantityPaymentTypes

@return $this