Add switch
This commit is contained in:
parent
346ca9b449
commit
41f05211da
|
@ -8,5 +8,5 @@ interface Geolocatable
|
||||||
|
|
||||||
public function getAddressForGeolocation(): ?Address;
|
public function getAddressForGeolocation(): ?Address;
|
||||||
|
|
||||||
public function destroyCoordinate();
|
public function destroyCoordinate(): void;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace Zoomyboy\Osm;
|
||||||
|
|
||||||
trait HasGeolocation
|
trait HasGeolocation
|
||||||
{
|
{
|
||||||
public static $geolocationEnabled = true;
|
public static bool $geolocationEnabled = true;
|
||||||
|
|
||||||
public static function bootHasGeolocation(): void
|
public static function bootHasGeolocation(): void
|
||||||
{
|
{
|
||||||
|
@ -25,12 +25,4 @@ trait HasGeolocation
|
||||||
{
|
{
|
||||||
static::$geolocationEnabled = true;
|
static::$geolocationEnabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function destroyCoordinate(): void
|
|
||||||
{
|
|
||||||
$this->updateQuietly([
|
|
||||||
'lat' => null,
|
|
||||||
'lon' => null,
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue