Files
pcm-geocode-bundle/src/Interface/Entity/GeocodeInterface.php
2024-08-05 14:50:26 +01:00

26 lines
487 B
PHP

<?php
declare(strict_types=1);
namespace Pcm\GeocodeBundle\Interface\Entity;
/**
* Defines latitude and longitude getters and setters
*/
interface GeocodeInterface
{
public function getLatitude(): ?float;
public function getLongitude(): ?float;
public function setLatitude(float $lat): self;
public function setLongitude(float $lon): self;
/**
* @return bool True if both latitude and longitude is set
*/
public function isGeocoded(): bool;
}