private function formatOutputLocationArray($locations)
    {
        $formattedResponse = [];

        /**
         * @var LocationInterface $location
         */
        foreach ($locations as $location) {
            $formattedResponse[] = $this->formatOutputLocation($location);
        }

        return $formattedResponse;
    }
private function formatOutputLocationArray($locations)
    {
        $formattedResponse = [];

        /**
         * @var LocationInterface $location
         */
        foreach ($locations as $location) {
            $formattedResponse[] = $this->formatOutputLocation($location);
        }

        return $formattedResponse;
    }
private function formatOutputLocationArray ( $ locations ) { $ formattedResponse = [ ] ; /**
         * @var LocationInterface $location
         */ foreach ( $ locations as $ location ) { $ formattedResponse [ ] = $ this -> formatOutputLocation ( $ location ) ; } return $ formattedResponse ; }
Given a group of locations, return a simplified output using the
ValueObject LocationData, ready to be serialized.

@param array|Collection $locations The locations to format.

@return LocationData[] Formatted mode of Locations
Given a group of locations return a simplified output using the ValueObject LocationData ready to be serialized .