Code Duplication    Length = 52-52 lines in 2 locations

src/API/SaveReservationWithPaypalProcessed.php 1 location

@@ 304-355 (lines=52) @@
301
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
302
     * @param int $intSuiteConfigurationID
303
     */
304
    public function __construct($intGUID, $strISOLanguage, $strFirstName, $strLastName, $strCompany, $strAddress1, $strAddress2, $strCity, $strState, $strCountry, $strZip, $strPhone, $strEmail, $strPaypalTransactionID, $strReference, \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, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $intSuiteConfigurationID)
305
    {
306
        $this->intGUID = $intGUID;
307
        $this->strISOLanguage = $strISOLanguage;
308
        $this->strFirstName = $strFirstName;
309
        $this->strLastName = $strLastName;
310
        $this->strCompany = $strCompany;
311
        $this->strAddress1 = $strAddress1;
312
        $this->strAddress2 = $strAddress2;
313
        $this->strCity = $strCity;
314
        $this->strState = $strState;
315
        $this->strCountry = $strCountry;
316
        $this->strZip = $strZip;
317
        $this->strPhone = $strPhone;
318
        $this->strEmail = $strEmail;
319
        $this->strPaypalTransactionID = $strPaypalTransactionID;
320
        $this->strReference = $strReference;
321
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
322
        $this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM);
323
        $this->intGuestCount = $intGuestCount;
324
        $this->strChildren = $strChildren;
325
        $this->intRateID = $intRateID;
326
        $this->intRoomTypeID = $intRoomTypeID;
327
        $this->intPromoPushID = $intPromoPushID;
328
        $this->intPromoCodeID = $intPromoCodeID;
329
        $this->strAttributes = $strAttributes;
330
        $this->strLocations = $strLocations;
331
        $this->strSpecialRequests = $strSpecialRequests;
332
        $this->strActivityStructure = $strActivityStructure;
333
        $this->intRoomQty = $intRoomQty;
334
        $this->dstElements = $dstElements;
335
        $this->intTANo = $intTANo;
336
        $this->strIATANo = $strIATANo;
337
        $this->intMemNo = $intMemNo;
338
        $this->dstGolfPackageItems = $dstGolfPackageItems;
339
        $this->intCondoOwnerId = $intCondoOwnerId;
340
        $this->intRoomId = $intRoomId;
341
        $this->intBookingCondoType = $intBookingCondoType;
342
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
343
        $this->intBuildingID = $intBuildingID;
344
        $this->ReservationAmount = $ReservationAmount;
345
        $this->ELMMarketingSource = $ELMMarketingSource;
346
        $this->DayOfBirth = $DayOfBirth;
347
        $this->MonthOfBirth = $MonthOfBirth;
348
        $this->YearOfBirth = $YearOfBirth;
349
        $this->strComments = $strComments;
350
        $this->IsPaidByFOO = $IsPaidByFOO;
351
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
352
        $this->intBusinessSourceID = $intBusinessSourceID;
353
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
354
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
355
    }
356
357
    /**
358
     * @return int

src/API/WebRes_SaveReservationForRBO.php 1 location

@@ 304-355 (lines=52) @@
301
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
302
     * @param int $intSuiteConfigurationID
303
     */
304
    public function __construct($intGUID, $strISOLanguage, $strFirstName, $strLastName, $strCompany, $strAddress1, $strAddress2, $strCity, $strState, $strCountry, $strZip, $strPhone, $strEmail, $intCCType, $strVaultTokenGuid, \DateTime $dtCCExp, \DateTime $dtArrivalDate, \DateTime $dtDepartureDate, $intGuestCount, $strChildren, $intRateID, $intRoomTypeID, $intPromoPushID, $intPromoCodeID, $strAttributes, $strLocations, $strSpecialRequests, $intRoomQty, $dstElements, $intTANo, $intMemNo, $intCondoOwnerId, $intRoomId, $intBookingCondoType, $GroupID, $GroupPrivateGridID, $ManualType, $ID_Member, $strComments, $IsPaidByFOO, $StrListSpecialOffertApplicable, $dsDailyManualRates, $IsRBO, $IsInsuranceAccepted, $BackToBackMode, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $intSuiteConfigurationID)
305
    {
306
        $this->intGUID = $intGUID;
307
        $this->strISOLanguage = $strISOLanguage;
308
        $this->strFirstName = $strFirstName;
309
        $this->strLastName = $strLastName;
310
        $this->strCompany = $strCompany;
311
        $this->strAddress1 = $strAddress1;
312
        $this->strAddress2 = $strAddress2;
313
        $this->strCity = $strCity;
314
        $this->strState = $strState;
315
        $this->strCountry = $strCountry;
316
        $this->strZip = $strZip;
317
        $this->strPhone = $strPhone;
318
        $this->strEmail = $strEmail;
319
        $this->intCCType = $intCCType;
320
        $this->strVaultTokenGuid = $strVaultTokenGuid;
321
        $this->dtCCExp = $dtCCExp->format(\DateTime::ATOM);
322
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
323
        $this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM);
324
        $this->intGuestCount = $intGuestCount;
325
        $this->strChildren = $strChildren;
326
        $this->intRateID = $intRateID;
327
        $this->intRoomTypeID = $intRoomTypeID;
328
        $this->intPromoPushID = $intPromoPushID;
329
        $this->intPromoCodeID = $intPromoCodeID;
330
        $this->strAttributes = $strAttributes;
331
        $this->strLocations = $strLocations;
332
        $this->strSpecialRequests = $strSpecialRequests;
333
        $this->intRoomQty = $intRoomQty;
334
        $this->dstElements = $dstElements;
335
        $this->intTANo = $intTANo;
336
        $this->intMemNo = $intMemNo;
337
        $this->intCondoOwnerId = $intCondoOwnerId;
338
        $this->intRoomId = $intRoomId;
339
        $this->intBookingCondoType = $intBookingCondoType;
340
        $this->GroupID = $GroupID;
341
        $this->GroupPrivateGridID = $GroupPrivateGridID;
342
        $this->ManualType = $ManualType;
343
        $this->ID_Member = $ID_Member;
344
        $this->strComments = $strComments;
345
        $this->IsPaidByFOO = $IsPaidByFOO;
346
        $this->StrListSpecialOffertApplicable = $StrListSpecialOffertApplicable;
347
        $this->dsDailyManualRates = $dsDailyManualRates;
348
        $this->IsRBO = $IsRBO;
349
        $this->IsInsuranceAccepted = $IsInsuranceAccepted;
350
        $this->BackToBackMode = $BackToBackMode;
351
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
352
        $this->intBusinessSourceID = $intBusinessSourceID;
353
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
354
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
355
    }
356
357
    /**
358
     * @return int