Add mapping for community resources
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user