protected function addDates(array $dates = [])
    {
        foreach (['OutboundDates', 'InboundDates'] as $date) {
            if (!empty($this->data->Dates->$date)) {
                foreach ($this->data->Dates->$date as $key => $datum) {
                    $dates[$key] = $this->syncQuotes($datum, [], 'QuoteIds');
                }
            }
        }
        return $dates;
    }
protected function addDates(array $dates = [])
    {
        foreach (['OutboundDates', 'InboundDates'] as $date) {
            if (!empty($this->data->Dates->$date)) {
                foreach ($this->data->Dates->$date as $key => $datum) {
                    $dates[$key] = $this->syncQuotes($datum, [], 'QuoteIds');
                }
            }
        }
        return $dates;
    }
protected function addDates ( array $ dates = [ ] ) { foreach ( [ 'OutboundDates' , 'InboundDates' ] as $ date ) { if ( ! empty ( $ this -> data -> Dates -> $ date ) ) { foreach ( $ this -> data -> Dates -> $ date as $ key => $ datum ) { $ dates [ $ key ] = $ this -> syncQuotes ( $ datum , [ ] , 'QuoteIds' ) ; } } } return $ dates ; }
Get the cheapest price from one place to another for each day of a given month
Get the cheapest price from one place to another for each month within the next year

Case I:
Find me the cheapest prices from Edinburgh to London in the next year.
This gives the cheapest known price for each month of the coming year.

Case II:
Find me the cheapest prices from Edinburgh to London departing in January and returning in February.
This gives the cheapest prices for each day in the months on the query.

Case III:
Find me the cheapest prices from Edinburgh to London departing on 5th January and returning on 6th February.
This gives the cheapest prices for these days.

@param array $dates

@return mixed

@link     http://business.skyscanner.net/portal/en-GB/Documentation/FlightsBrowseCacheDates
Get the cheapest price from one place to another for each day of a given month Get the cheapest price from one place to another for each month within the next year