Code Duplication    Length = 50-51 lines in 2 locations

src/API/WebRes_SaveReservation.php 1 location

@@ 292-341 (lines=50) @@
289
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
290
     * @param int $intSuiteConfigurationID
291
     */
292
    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, $strActivityStructure, $intRoomQty, $dstElements, $intTANo, $intMemNo, $dstGolfPackageItems, $intCondoOwnerId, $intRoomId, $intBookingCondoType, $GroupID, $GroupPrivateGridID, $ManualType, $TvlInsSvcChargeStayStatus, $ID_Member, $strComments, $IsPaidByFOO, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $intSuiteConfigurationID)
293
    {
294
        $this->intGUID = $intGUID;
295
        $this->strISOLanguage = $strISOLanguage;
296
        $this->strFirstName = $strFirstName;
297
        $this->strLastName = $strLastName;
298
        $this->strCompany = $strCompany;
299
        $this->strAddress1 = $strAddress1;
300
        $this->strAddress2 = $strAddress2;
301
        $this->strCity = $strCity;
302
        $this->strState = $strState;
303
        $this->strCountry = $strCountry;
304
        $this->strZip = $strZip;
305
        $this->strPhone = $strPhone;
306
        $this->strEmail = $strEmail;
307
        $this->intCCType = $intCCType;
308
        $this->strVaultTokenGuid = $strVaultTokenGuid;
309
        $this->dtCCExp = $dtCCExp->format(\DateTime::ATOM);
310
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
311
        $this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM);
312
        $this->intGuestCount = $intGuestCount;
313
        $this->strChildren = $strChildren;
314
        $this->intRateID = $intRateID;
315
        $this->intRoomTypeID = $intRoomTypeID;
316
        $this->intPromoPushID = $intPromoPushID;
317
        $this->intPromoCodeID = $intPromoCodeID;
318
        $this->strAttributes = $strAttributes;
319
        $this->strLocations = $strLocations;
320
        $this->strSpecialRequests = $strSpecialRequests;
321
        $this->strActivityStructure = $strActivityStructure;
322
        $this->intRoomQty = $intRoomQty;
323
        $this->dstElements = $dstElements;
324
        $this->intTANo = $intTANo;
325
        $this->intMemNo = $intMemNo;
326
        $this->dstGolfPackageItems = $dstGolfPackageItems;
327
        $this->intCondoOwnerId = $intCondoOwnerId;
328
        $this->intRoomId = $intRoomId;
329
        $this->intBookingCondoType = $intBookingCondoType;
330
        $this->GroupID = $GroupID;
331
        $this->GroupPrivateGridID = $GroupPrivateGridID;
332
        $this->ManualType = $ManualType;
333
        $this->TvlInsSvcChargeStayStatus = $TvlInsSvcChargeStayStatus;
334
        $this->ID_Member = $ID_Member;
335
        $this->strComments = $strComments;
336
        $this->IsPaidByFOO = $IsPaidByFOO;
337
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
338
        $this->intBusinessSourceID = $intBusinessSourceID;
339
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
340
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
341
    }
342
343
    /**
344
     * @return int

src/API/WebRes_SaveReservationBackToBack.php 1 location

@@ 298-348 (lines=51) @@
295
     * @param dstServicesChargesALaCarte $dstServicesChargesALaCarte
296
     * @param int $intSuiteConfigurationID
297
     */
298
    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, $strActivityStructure, $intRoomQty, $dstElements, $intTANo, $intMemNo, $dstGolfPackageItems, $intCondoOwnerId, $intRoomId, $intBookingCondoType, $GroupID, $GroupPrivateGridID, $ManualType, $TvlInsSvcChargeStayStatus, $ID_Member, $strComments, $IsPaidByFOO, $BackToBackMode, $IsApplySpecialOffers, $intBusinessSourceID, $dstServicesChargesALaCarte, $intSuiteConfigurationID)
299
    {
300
        $this->intGUID = $intGUID;
301
        $this->strISOLanguage = $strISOLanguage;
302
        $this->strFirstName = $strFirstName;
303
        $this->strLastName = $strLastName;
304
        $this->strCompany = $strCompany;
305
        $this->strAddress1 = $strAddress1;
306
        $this->strAddress2 = $strAddress2;
307
        $this->strCity = $strCity;
308
        $this->strState = $strState;
309
        $this->strCountry = $strCountry;
310
        $this->strZip = $strZip;
311
        $this->strPhone = $strPhone;
312
        $this->strEmail = $strEmail;
313
        $this->intCCType = $intCCType;
314
        $this->strVaultTokenGuid = $strVaultTokenGuid;
315
        $this->dtCCExp = $dtCCExp->format(\DateTime::ATOM);
316
        $this->dtArrivalDate = $dtArrivalDate->format(\DateTime::ATOM);
317
        $this->dtDepartureDate = $dtDepartureDate->format(\DateTime::ATOM);
318
        $this->intGuestCount = $intGuestCount;
319
        $this->strChildren = $strChildren;
320
        $this->intRateID = $intRateID;
321
        $this->intRoomTypeID = $intRoomTypeID;
322
        $this->intPromoPushID = $intPromoPushID;
323
        $this->intPromoCodeID = $intPromoCodeID;
324
        $this->strAttributes = $strAttributes;
325
        $this->strLocations = $strLocations;
326
        $this->strSpecialRequests = $strSpecialRequests;
327
        $this->strActivityStructure = $strActivityStructure;
328
        $this->intRoomQty = $intRoomQty;
329
        $this->dstElements = $dstElements;
330
        $this->intTANo = $intTANo;
331
        $this->intMemNo = $intMemNo;
332
        $this->dstGolfPackageItems = $dstGolfPackageItems;
333
        $this->intCondoOwnerId = $intCondoOwnerId;
334
        $this->intRoomId = $intRoomId;
335
        $this->intBookingCondoType = $intBookingCondoType;
336
        $this->GroupID = $GroupID;
337
        $this->GroupPrivateGridID = $GroupPrivateGridID;
338
        $this->ManualType = $ManualType;
339
        $this->TvlInsSvcChargeStayStatus = $TvlInsSvcChargeStayStatus;
340
        $this->ID_Member = $ID_Member;
341
        $this->strComments = $strComments;
342
        $this->IsPaidByFOO = $IsPaidByFOO;
343
        $this->BackToBackMode = $BackToBackMode;
344
        $this->IsApplySpecialOffers = $IsApplySpecialOffers;
345
        $this->intBusinessSourceID = $intBusinessSourceID;
346
        $this->dstServicesChargesALaCarte = $dstServicesChargesALaCarte;
347
        $this->intSuiteConfigurationID = $intSuiteConfigurationID;
348
    }
349
350
    /**
351
     * @return int