Rename class
This commit is contained in:
25
src/Data/LatLon.php
Normal file
25
src/Data/LatLon.php
Normal 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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user