initital commit

This commit is contained in:
2025-01-26 21:17:23 +01:00
commit 2a7345ba56
72 changed files with 9458 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace App\DTO\Factory;
use App\DTO\GEOPoint;
class GEOPointFactory
{
public function createFromString(string|float|int $lat, string|float|int $lon): ?GEOPoint
{
if (is_numeric($lat) && is_numeric($lon)) {
$lat = floatval($lat);
$lon = floatval($lon);
return new GEOPoint($lat, $lon);
}
return null;
}
}