26 lines
487 B
PHP
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;
|
|
}
|
|
|