private function buildLocations(array $data)
    {
        $locationInstances = [];

        foreach ($data as $locationData) {
            $locationInstances[] = $this->buildLocation($locationData);
        }

        return $locationInstances;
    }
private function buildLocations(array $data)
    {
        $locationInstances = [];

        foreach ($data as $locationData) {
            $locationInstances[] = $this->buildLocation($locationData);
        }

        return $locationInstances;
    }
private function buildLocations ( array $ data ) { $ locationInstances = [ ] ; foreach ( $ data as $ locationData ) { $ locationInstances [ ] = $ this -> buildLocation ( $ locationData ) ; } return $ locationInstances ; }
Build a new set of Location instances given some data.

@param array $data Data where to build from

@return LocationData[] Location instances
Build a new set of Location instances given some data .