Add switch

This commit is contained in:
Philipp Lang 2023-05-16 16:09:26 +02:00
parent 346ca9b449
commit 41f05211da
2 changed files with 2 additions and 10 deletions

View File

@ -8,5 +8,5 @@ interface Geolocatable
public function getAddressForGeolocation(): ?Address; public function getAddressForGeolocation(): ?Address;
public function destroyCoordinate(); public function destroyCoordinate(): void;
} }

View File

@ -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,
]);
}
} }