Rename class

This commit is contained in:
Brabli
2022-07-20 21:49:09 +01:00
parent 83de38fbb4
commit 827d528c64
2 changed files with 25 additions and 32 deletions

25
src/Data/LatLon.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Pcm\GeocodeBundle\Data;
/**
* A data class for accessing latitude and longitude values
*
* @package Pcm\GeocodeBundle
*/
class LatLon
{
public function __construct(private float $latitude, private float $longitude) {}
public function getLatitude(): float
{
return $this->getLatitude();
}
public function getLongitude(): float
{
return $this->getLongitude();
}
}

View File

@@ -1,32 +0,0 @@
<?php
declare(strict_types=1);
namespace Pcm\GeocodeBundle\Entity;
class GeocodeData
{
private float $latitude;
private float $longitude;
public function setLatitude(float $latitude): void
{
$this->latitude = $latitude;
}
public function setLongitude(float $longitude): void
{
$this->longitude = $longitude;
}
public function getLatitude(): float
{
return $this->getLatitude();
}
public function getLongitude(): float
{
return $this->getLongitude();
}
}