code: 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;
      }
docs: @param  int $quantityPaymentTypes
  
  @return $this