src/Amadeus/Client/Struct/PriceXplorer/ExtremeSearch.php
protected function loadDestinations(PriceXplorerExtremeSearchOptions $params)
    {
        foreach ($params->destinations as $destination) {
            $this->itineraryGrp[] = new ItineraryGrp(null, $destination);
        }

        foreach ($params->destinationCountries as $destinationCountry) {
            $tmpGrp = new ItineraryGrp();

            $tmpGrp->locationInfo = new LocationInfo(LocationInfo::LOC_COUNTRY);

            $tmpGrp->locationInfo->locationDescription = new LocationIdentificationType();
            $tmpGrp->locationInfo->locationDescription->qualifier = LocationIdentificationType::QUAL_DESTINATION;
            $tmpGrp->locationInfo->locationDescription->code = $destinationCountry;

            $this->itineraryGrp[] = $tmpGrp;
        }
    }
protected function loadDestinations(PriceXplorerExtremeSearchOptions $params)
    {
        foreach ($params->destinations as $destination) {
            $this->itineraryGrp[] = new ItineraryGrp(null, $destination);
        }

        foreach ($params->destinationCountries as $destinationCountry) {
            $tmpGrp = new ItineraryGrp();

            $tmpGrp->locationInfo = new LocationInfo(LocationInfo::LOC_COUNTRY);

            $tmpGrp->locationInfo->locationDescription = new LocationIdentificationType();
            $tmpGrp->locationInfo->locationDescription->qualifier = LocationIdentificationType::QUAL_DESTINATION;
            $tmpGrp->locationInfo->locationDescription->code = $destinationCountry;

            $this->itineraryGrp[] = $tmpGrp;
        }
    }
@param PriceXplorerExtremeSearchOptions $params