src/Entity/ClimatezoneRaster.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ClimatezoneRasterRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassClimatezoneRasterRepository::class)]
  7. class ClimatezoneRaster
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'climatezoneRasters')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?Climatezone $climatezone null;
  16.     #[ORM\Column]
  17.     private ?float $lat_min null;
  18.     #[ORM\Column]
  19.     private ?float $lat_max null;
  20.     #[ORM\Column]
  21.     private ?float $lon_min null;
  22.     #[ORM\Column]
  23.     private ?float $lon_max null;
  24.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  25.     private ?\DateTimeInterface $created_at null;
  26.     #[ORM\Column(nullabletrue)]
  27.     private array $temp_range = [];
  28.     public function __construct() {
  29.         $this->created_at = new \DateTime();
  30.     }
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getClimatezone(): ?Climatezone
  36.     {
  37.         return $this->climatezone;
  38.     }
  39.     public function setClimatezone(?Climatezone $climatezone): static
  40.     {
  41.         $this->climatezone $climatezone;
  42.         return $this;
  43.     }
  44.     public function getLatMin(): ?float
  45.     {
  46.         return $this->lat_min;
  47.     }
  48.     public function setLatMin(float $lat_min): static
  49.     {
  50.         $this->lat_min $lat_min;
  51.         return $this;
  52.     }
  53.     public function getLatMax(): ?float
  54.     {
  55.         return $this->lat_max;
  56.     }
  57.     public function setLatMax(float $lat_max): static
  58.     {
  59.         $this->lat_max $lat_max;
  60.         return $this;
  61.     }
  62.     public function getLonMin(): ?float
  63.     {
  64.         return $this->lon_min;
  65.     }
  66.     public function setLonMin(float $lon_min): static
  67.     {
  68.         $this->lon_min $lon_min;
  69.         return $this;
  70.     }
  71.     public function getLonMax(): ?float
  72.     {
  73.         return $this->lon_max;
  74.     }
  75.     public function setLonMax(float $lon_max): static
  76.     {
  77.         $this->lon_max $lon_max;
  78.         return $this;
  79.     }
  80.     public function getCreatedAt(): ?\DateTimeInterface
  81.     {
  82.         return $this->created_at;
  83.     }
  84.     public function setCreatedAt(\DateTimeInterface $created_at): static
  85.     {
  86.         $this->created_at $created_at;
  87.         return $this;
  88.     }
  89.     public function getTempRange(): array
  90.     {
  91.         return $this->temp_range;
  92.     }
  93.     public function setTempRange(?array $temp_range): static
  94.     {
  95.         $this->temp_range $temp_range;
  96.         return $this;
  97.     }
  98. }