<?php
namespace App\Entity;
use App\Repository\ClimatezoneRasterRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ClimatezoneRasterRepository::class)]
class ClimatezoneRaster
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'climatezoneRasters')]
#[ORM\JoinColumn(nullable: false)]
private ?Climatezone $climatezone = null;
#[ORM\Column]
private ?float $lat_min = null;
#[ORM\Column]
private ?float $lat_max = null;
#[ORM\Column]
private ?float $lon_min = null;
#[ORM\Column]
private ?float $lon_max = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $created_at = null;
#[ORM\Column(nullable: true)]
private array $temp_range = [];
public function __construct() {
$this->created_at = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getClimatezone(): ?Climatezone
{
return $this->climatezone;
}
public function setClimatezone(?Climatezone $climatezone): static
{
$this->climatezone = $climatezone;
return $this;
}
public function getLatMin(): ?float
{
return $this->lat_min;
}
public function setLatMin(float $lat_min): static
{
$this->lat_min = $lat_min;
return $this;
}
public function getLatMax(): ?float
{
return $this->lat_max;
}
public function setLatMax(float $lat_max): static
{
$this->lat_max = $lat_max;
return $this;
}
public function getLonMin(): ?float
{
return $this->lon_min;
}
public function setLonMin(float $lon_min): static
{
$this->lon_min = $lon_min;
return $this;
}
public function getLonMax(): ?float
{
return $this->lon_max;
}
public function setLonMax(float $lon_max): static
{
$this->lon_max = $lon_max;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}
public function setCreatedAt(\DateTimeInterface $created_at): static
{
$this->created_at = $created_at;
return $this;
}
public function getTempRange(): array
{
return $this->temp_range;
}
public function setTempRange(?array $temp_range): static
{
$this->temp_range = $temp_range;
return $this;
}
}