src/Entity/HistoriqueSportif.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HistoriqueSportifRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassHistoriqueSportifRepository::class)]
  7. class HistoriqueSportif
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column]
  14.     private ?float $imc_current null;
  15.     #[ORM\Column(nullabletrue)]
  16.     private ?float $imc_min null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?float $imc_max null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?float $poids_imc_min null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?float $poids_imc_max null;
  23.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  24.     private ?\DateTimeInterface $date_ajout null;
  25.     /**
  26.      * @param \DateTimeInterface|null $date_ajout
  27.      */
  28.     public function __construct(?\DateTimeInterface $date_ajout)
  29.     {
  30.         $this->date_ajout = new \DateTimeImmutable('now');
  31.     }
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getImcCurrent(): ?float
  37.     {
  38.         return $this->imc_current;
  39.     }
  40.     public function setImcCurrent(float $imc_current): static
  41.     {
  42.         $this->imc_current $imc_current;
  43.         return $this;
  44.     }
  45.     public function getImcMin(): ?float
  46.     {
  47.         return $this->imc_min;
  48.     }
  49.     public function setImcMin(?float $imc_min): static
  50.     {
  51.         $this->imc_min $imc_min;
  52.         return $this;
  53.     }
  54.     public function getImcMax(): ?float
  55.     {
  56.         return $this->imc_max;
  57.     }
  58.     public function setImcMax(?float $imc_max): static
  59.     {
  60.         $this->imc_max $imc_max;
  61.         return $this;
  62.     }
  63.     public function getPoidsImcMin(): ?float
  64.     {
  65.         return $this->poids_imc_min;
  66.     }
  67.     public function setPoidsImcMin(?float $poids_imc_min): static
  68.     {
  69.         $this->poids_imc_min $poids_imc_min;
  70.         return $this;
  71.     }
  72.     public function getPoidsImcMax(): ?float
  73.     {
  74.         return $this->poids_imc_max;
  75.     }
  76.     public function setPoidsImcMax(?float $poids_imc_max): static
  77.     {
  78.         $this->poids_imc_max $poids_imc_max;
  79.         return $this;
  80.     }
  81.     public function getDateAjout(): ?\DateTimeInterface
  82.     {
  83.         return $this->date_ajout;
  84.     }
  85.     public function setDateAjout(\DateTimeInterface $date_ajout): static
  86.     {
  87.         $this->date_ajout $date_ajout;
  88.         return $this;
  89.     }
  90. }