Rename LatLon
This commit is contained in:
25
src/Model/LatLonModel.php
Normal file
25
src/Model/LatLonModel.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pcm\GeocodeBundle\Model;
|
||||
|
||||
/**
|
||||
* A model for accessing latitude and longitude values
|
||||
*
|
||||
* @package Pcm\GeocodeBundle
|
||||
*/
|
||||
class LatLonModel
|
||||
{
|
||||
public function __construct(private float $latitude, private float $longitude) {}
|
||||
|
||||
public function getLatitude(): float
|
||||
{
|
||||
return $this->getLatitude();
|
||||
}
|
||||
|
||||
public function getLongitude(): float
|
||||
{
|
||||
return $this->getLongitude();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user