magickatt/MultiContextBDDTalk

View on GitHub
backend/src/HistoricalMeteorological/Transformer/LocationTransformer.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
 
namespace HistoricalMeteorological\Transformer;
 
use HistoricalMeteorological\Entity\Location;
 
class LocationTransformer
{
public static function transformLocationToArray(Location $location)
{
return [
'id' => $location->getId(),
'name' => $location->getName(),
'latitude' => $location->getLatitude(),
'longitude' => $location->getLongitude(),
'amsl' => $location->getDistanceAboveMeanSeaLevel()
];
}
Expected 1 newline at end of file; 0 found
}