osm-commerces/src/Entity/CityFollowUp.php

80 lines
1.4 KiB
PHP
Raw Normal View History

2025-06-29 14:50:46 +02:00
<?php
namespace App\Entity;
use App\Repository\CityFollowUpRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CityFollowUpRepository::class)]
class CityFollowUp
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column]
private ?float $measure = null;
#[ORM\Column]
private ?\DateTime $date = null;
2025-06-29 15:56:55 +02:00
#[ORM\ManyToOne(targetEntity: Stats::class, inversedBy: 'cityFollowUps')]
private ?Stats $stats = null;
2025-06-29 14:50:46 +02:00
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getMeasure(): ?float
{
return $this->measure;
}
public function setMeasure(float $measure): static
{
$this->measure = $measure;
return $this;
}
public function getDate(): ?\DateTime
{
return $this->date;
}
public function setDate(\DateTime $date): static
{
$this->date = $date;
return $this;
}
2025-06-29 15:56:55 +02:00
public function getStats(): ?Stats
2025-06-29 14:50:46 +02:00
{
return $this->stats;
}
2025-06-29 15:56:55 +02:00
public function setStats(?Stats $stats): static
2025-06-29 14:50:46 +02:00
{
2025-06-29 15:56:55 +02:00
$this->stats = $stats;
2025-06-29 14:50:46 +02:00
return $this;
}
}