Add mapping for community resources

This commit is contained in:
2024-12-22 22:57:32 +00:00
parent 7ae335a716
commit c5b8148f00
3 changed files with 133 additions and 5 deletions

View File

@ -100,9 +100,15 @@ class CommunityResource
#[ORM\Column(length: 255, nullable: true)]
private ?string $servicesAvailable = null;
#[ORM\Column(type: Types::SIMPLE_ARRAY, enumType: ResourceType::class)]
#[ORM\Column(type: Types::JSON, enumType: ResourceType::class)]
private array $type = [];
#[ORM\Column(nullable: true)]
private ?float $lat = null;
#[ORM\Column(nullable: true)]
private ?float $lon = null;
public function __construct(
private DateTime $today = new DateTime('now', new DateTimeZone('America/New_York'))
) {
@ -641,4 +647,28 @@ class CommunityResource
return $this;
}
public function getLat(): ?float
{
return $this->lat;
}
public function setLat(?float $lat): static
{
$this->lat = $lat;
return $this;
}
public function getLon(): ?float
{
return $this->lon;
}
public function setLon(?float $lon): static
{
$this->lon = $lon;
return $this;
}
}