Code Duplication    Length = 61-62 lines in 3 locations

src/API/SaveReservationWithCardProcessedRBOBackToBack.php 1 location

@@ 358-418 (lines=61) @@
355
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
356
     * @param int $intSuiteConfigurationID
357
     */
358
    public function __construct($intGUID, $strISOLanguage, $strFirstName, $strLastName, $strCompany, $strAddress1, $strAddress2, $strCity, $strState, $strCountry, $strZip, $strPhone, $strEmail, $intCCType, $strVaultTokenGuid, $CVV2, \DateTime $dtCCExp, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $strChildren, $intRateID, $intRoomTypeID, $intPromoPushID, $intPromoCodeID, $strAttributes, $strLocations, $strSpecialRequests, $strActivityStructure, $intRoomQty, $dstElements, $intTANo, $strIATANo, $intMemNo, $dstGolfPackageItems, $intCondoOwnerId, $intRoomId, $intBookingCondoType, $IsInsuranceAccepted, $intBuildingID, $ReservationAmount, $VaultLogin, $VaultPassword, $ELMMarketingSource, $DayOfBirth, $MonthOfBirth, $YearOfBirth, $strComments, $IsPaidByFOO, $StrListSpecialOffertApplicable, $dsDailyManualRates, $IsRBO, $ID_Member, $BackToBackMode, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $intSuiteConfigurationID)
359
    {
360
        $this->intGUID = $intGUID;
361
        $this->strISOLanguage = $strISOLanguage;
362
        $this->strFirstName = $strFirstName;
363
        $this->strLastName = $strLastName;
364
        $this->strCompany = $strCompany;
365
        $this->strAddress1 = $strAddress1;
366
        $this->strAddress2 = $strAddress2;
367
        $this->strCity = $strCity;
368
        $this->strState = $strState;
369
        $this->strCountry = $strCountry;
370
        $this->strZip = $strZip;
371
        $this->strPhone = $strPhone;
372
        $this->strEmail = $strEmail;
373
        $this->intCCType = $intCCType;
374
        $this->strVaultTokenGuid = $strVaultTokenGuid;
375
        $this->CVV2 = $CVV2;
376
        $this->dtCCExp = $dtCCExp->format(\DateTime::ATOM);
377
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
378
        $this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM);
379
        $this->intGuestCount = $intGuestCount;
380
        $this->strChildren = $strChildren;
381
        $this->intRateID = $intRateID;
382
        $this->intRoomTypeID = $intRoomTypeID;
383
        $this->intPromoPushID = $intPromoPushID;
384
        $this->intPromoCodeID = $intPromoCodeID;
385
        $this->strAttributes = $strAttributes;
386
        $this->strLocations = $strLocations;
387
        $this->strSpecialRequests = $strSpecialRequests;
388
        $this->strActivityStructure = $strActivityStructure;
389
        $this->intRoomQty = $intRoomQty;
390
        $this->dstElements = $dstElements;
391
        $this->intTANo = $intTANo;
392
        $this->strIATANo = $strIATANo;
393
        $this->intMemNo = $intMemNo;
394
        $this->dstGolfPackageItems = $dstGolfPackageItems;
395
        $this->intCondoOwnerId = $intCondoOwnerId;
396
        $this->intRoomId = $intRoomId;
397
        $this->intBookingCondoType = $intBookingCondoType;
398
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
399
        $this->intBuildingID = $intBuildingID;
400
        $this->ReservationAmount = $ReservationAmount;
401
        $this->VaultLogin = $VaultLogin;
402
        $this->VaultPassword = $VaultPassword;
403
        $this->ELMMarketingSource = $ELMMarketingSource;
404
        $this->DayOfBirth = $DayOfBirth;
405
        $this->MonthOfBirth = $MonthOfBirth;
406
        $this->YearOfBirth = $YearOfBirth;
407
        $this->strComments = $strComments;
408
        $this->IsPaidByFOO = $IsPaidByFOO;
409
        $this->StrListSpecialOffertApplicable = $StrListSpecialOffertApplicable;
410
        $this->dsDailyManualRates = $dsDailyManualRates;
411
        $this->IsRBO = $IsRBO;
412
        $this->ID_Member = $ID_Member;
413
        $this->BackToBackMode = $BackToBackMode;
414
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
415
        $this->intBusinessSourceID = $intBusinessSourceID;
416
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
417
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
418
    }
419
420
    /**
421
     * @return int

src/API/SaveReservationWithECheckProcessedRBOBackToBack.php 1 location

@@ 364-425 (lines=62) @@
361
     * @param string $strBankInstitutNo
362
     * @param int $intSuiteConfigurationID
363
     */
364
    public function __construct($intGUID, $strISOLanguage, $strFirstName, $strLastName, $strCompany, $strAddress1, $strAddress2, $strCity, $strState, $strCountry, $strZip, $strPhone, $strEmail, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $strChildren, $intRateID, $intRoomTypeID, $intPromoPushID, $intPromoCodeID, $strAttributes, $strLocations, $strSpecialRequests, $strActivityStructure, $intRoomQty, $dstElements, $intTANo, $strIATANo, $intMemNo, $dstGolfPackageItems, $intCondoOwnerId, $intRoomId, $intBookingCondoType, $IsInsuranceAccepted, $intBuildingID, $ReservationAmount, $ELMMarketingSource, $DayOfBirth, $MonthOfBirth, $YearOfBirth, $strComments, $IsPaidByFOO, $StrListSpecialOffertApplicable, $dsDailyManualRates, $IsRBO, $ID_Member, $BackToBackMode, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $strRootingNo, $strBankAccountNo, $batCheckingType, $strBankName, $strAccountName, $strCheckNo, $strBankInstitutNo, $intSuiteConfigurationID)
365
    {
366
        $this->intGUID = $intGUID;
367
        $this->strISOLanguage = $strISOLanguage;
368
        $this->strFirstName = $strFirstName;
369
        $this->strLastName = $strLastName;
370
        $this->strCompany = $strCompany;
371
        $this->strAddress1 = $strAddress1;
372
        $this->strAddress2 = $strAddress2;
373
        $this->strCity = $strCity;
374
        $this->strState = $strState;
375
        $this->strCountry = $strCountry;
376
        $this->strZip = $strZip;
377
        $this->strPhone = $strPhone;
378
        $this->strEmail = $strEmail;
379
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
380
        $this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM);
381
        $this->intGuestCount = $intGuestCount;
382
        $this->strChildren = $strChildren;
383
        $this->intRateID = $intRateID;
384
        $this->intRoomTypeID = $intRoomTypeID;
385
        $this->intPromoPushID = $intPromoPushID;
386
        $this->intPromoCodeID = $intPromoCodeID;
387
        $this->strAttributes = $strAttributes;
388
        $this->strLocations = $strLocations;
389
        $this->strSpecialRequests = $strSpecialRequests;
390
        $this->strActivityStructure = $strActivityStructure;
391
        $this->intRoomQty = $intRoomQty;
392
        $this->dstElements = $dstElements;
393
        $this->intTANo = $intTANo;
394
        $this->strIATANo = $strIATANo;
395
        $this->intMemNo = $intMemNo;
396
        $this->dstGolfPackageItems = $dstGolfPackageItems;
397
        $this->intCondoOwnerId = $intCondoOwnerId;
398
        $this->intRoomId = $intRoomId;
399
        $this->intBookingCondoType = $intBookingCondoType;
400
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
401
        $this->intBuildingID = $intBuildingID;
402
        $this->ReservationAmount = $ReservationAmount;
403
        $this->ELMMarketingSource = $ELMMarketingSource;
404
        $this->DayOfBirth = $DayOfBirth;
405
        $this->MonthOfBirth = $MonthOfBirth;
406
        $this->YearOfBirth = $YearOfBirth;
407
        $this->strComments = $strComments;
408
        $this->IsPaidByFOO = $IsPaidByFOO;
409
        $this->StrListSpecialOffertApplicable = $StrListSpecialOffertApplicable;
410
        $this->dsDailyManualRates = $dsDailyManualRates;
411
        $this->IsRBO = $IsRBO;
412
        $this->ID_Member = $ID_Member;
413
        $this->BackToBackMode = $BackToBackMode;
414
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
415
        $this->intBusinessSourceID = $intBusinessSourceID;
416
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
417
        $this->strRootingNo = $strRootingNo;
418
        $this->strBankAccountNo = $strBankAccountNo;
419
        $this->batCheckingType = $batCheckingType;
420
        $this->strBankName = $strBankName;
421
        $this->strAccountName = $strAccountName;
422
        $this->strCheckNo = $strCheckNo;
423
        $this->strBankInstitutNo = $strBankInstitutNo;
424
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
425
    }
426
427
    /**
428
     * @return int

src/API/UpdateReservation.php 1 location

@@ 364-425 (lines=62) @@
361
     * @param int $ManualRateReason
362
     * @param float $ManualRate
363
     */
364
    public function __construct($intGUID, $AccountNo, $strISOLanguage, $strFirstName, $strLastName, $strCompany, $strAddress1, $strAddress2, $strCity, $strState, $strCountry, $strZip, $strPhone, $strEmail, $intCCType, $strCCNumber, \DateTime $dtCCExp, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $strChildren, $intRateID, $intRoomTypeID, $intPromoPushID, $intPromoCodeID, $strAttributes, $strLocations, $strSpecialRequests, $strActivityStructure, $intRoomQty, $dstElements, $intTANo, $strIATANo, $intMemNo, $dstGolfPackageItems, $intCondoOwnerId, $ID_Member, $intRoomId, $intBookingCondoType, $IsInsuranceAccepted, $intBuildingID, $strTokenGuid, $ELMMarketingSource, $DayOfBirth, $MonthOfBirth, $YearOfBirth, $strComments, $IsPaidByFOO, $BackToBackMode, $StrListSpecialOffertApplicable, $dsDailyManualRates, $IsRBO, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $intSuiteConfigurationID, $intTaxExemptionID, $ManualRateReason, $ManualRate)
365
    {
366
        $this->intGUID = $intGUID;
367
        $this->AccountNo = $AccountNo;
368
        $this->strISOLanguage = $strISOLanguage;
369
        $this->strFirstName = $strFirstName;
370
        $this->strLastName = $strLastName;
371
        $this->strCompany = $strCompany;
372
        $this->strAddress1 = $strAddress1;
373
        $this->strAddress2 = $strAddress2;
374
        $this->strCity = $strCity;
375
        $this->strState = $strState;
376
        $this->strCountry = $strCountry;
377
        $this->strZip = $strZip;
378
        $this->strPhone = $strPhone;
379
        $this->strEmail = $strEmail;
380
        $this->intCCType = $intCCType;
381
        $this->strCCNumber = $strCCNumber;
382
        $this->dtCCExp = $dtCCExp->format(\DateTime::ATOM);
383
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
384
        $this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM);
385
        $this->intGuestCount = $intGuestCount;
386
        $this->strChildren = $strChildren;
387
        $this->intRateID = $intRateID;
388
        $this->intRoomTypeID = $intRoomTypeID;
389
        $this->intPromoPushID = $intPromoPushID;
390
        $this->intPromoCodeID = $intPromoCodeID;
391
        $this->strAttributes = $strAttributes;
392
        $this->strLocations = $strLocations;
393
        $this->strSpecialRequests = $strSpecialRequests;
394
        $this->strActivityStructure = $strActivityStructure;
395
        $this->intRoomQty = $intRoomQty;
396
        $this->dstElements = $dstElements;
397
        $this->intTANo = $intTANo;
398
        $this->strIATANo = $strIATANo;
399
        $this->intMemNo = $intMemNo;
400
        $this->dstGolfPackageItems = $dstGolfPackageItems;
401
        $this->intCondoOwnerId = $intCondoOwnerId;
402
        $this->ID_Member = $ID_Member;
403
        $this->intRoomId = $intRoomId;
404
        $this->intBookingCondoType = $intBookingCondoType;
405
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
406
        $this->intBuildingID = $intBuildingID;
407
        $this->strTokenGuid = $strTokenGuid;
408
        $this->ELMMarketingSource = $ELMMarketingSource;
409
        $this->DayOfBirth = $DayOfBirth;
410
        $this->MonthOfBirth = $MonthOfBirth;
411
        $this->YearOfBirth = $YearOfBirth;
412
        $this->strComments = $strComments;
413
        $this->IsPaidByFOO = $IsPaidByFOO;
414
        $this->BackToBackMode = $BackToBackMode;
415
        $this->StrListSpecialOffertApplicable = $StrListSpecialOffertApplicable;
416
        $this->dsDailyManualRates = $dsDailyManualRates;
417
        $this->IsRBO = $IsRBO;
418
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
419
        $this->intBusinessSourceID = $intBusinessSourceID;
420
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
421
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
422
        $this->intTaxExemptionID = $intTaxExemptionID;
423
        $this->ManualRateReason = $ManualRateReason;
424
        $this->ManualRate = $ManualRate;
425
    }
426
427
    /**
428
     * @return int