Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
src
/
Entity
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/src/Entity/CodePromo.php
<?php namespace App\Entity; use App\Repository\CodePromoRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=CodePromoRepository::class) */ class CodePromo { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $code; /** * @ORM\Column(type="integer") */ private $taux; /** * @ORM\Column(type="datetime") */ private $dateDebut; /** * @ORM\Column(type="datetime") */ private $dateFin; /** * @ORM\Column(type="datetime", nullable=true) */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $UpdatedAt; /** * @ORM\Column(type="string", length=255) */ private $typePrix; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getCode(): ?string { return $this->code; } public function setCode(string $code): self { $this->code = $code; return $this; } public function getTaux(): ?int { return $this->taux; } public function setTaux(int $taux): self { $this->taux = $taux; return $this; } public function getDateDebut(): ?\DateTimeInterface { return $this->dateDebut; } public function setDateDebut(\DateTimeInterface $dateDebut): self { $this->dateDebut = $dateDebut; return $this; } public function getDateFin(): ?\DateTimeInterface { return $this->dateFin; } public function setDateFin(\DateTimeInterface $dateFin): self { $this->dateFin = $dateFin; return $this; } public function getCreatedAt(): ?\DateTime { return $this->createdAt; } public function setCreatedAt(?\DateTime $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeImmutable { return $this->UpdatedAt; } public function setUpdatedAt(?\DateTimeImmutable $UpdatedAt): self { $this->UpdatedAt = $UpdatedAt; return $this; } public function getTypePrix(): ?string { return $this->typePrix; } public function setTypePrix(string $typePrix): self { $this->typePrix = $typePrix; return $this; } }