src/Entity/Abonnements.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AbonnementsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAbonnementsRepository::class)]
  6. class Abonnements
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column]
  13.     private ?int $periode null;
  14.     #[ORM\Column(length10)]
  15.     private ?string $prix null;
  16.     #[ORM\Column(type'datetime')]
  17.     private ?\DateTimeInterface $suspension null;
  18.     #[ORM\Column]
  19.     private ?int $packsid null;
  20.     #[ORM\Column]
  21.     private ?int $sitesid null;
  22.     #[ORM\Column(type'datetime')]
  23.     private ?\DateTimeInterface $createdat null;
  24.     #[ORM\Column(type'datetime')]
  25.     private ?\DateTimeInterface $updatedat null;
  26.     // Getters / Setters
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getPeriode(): ?int
  32.     {
  33.         return $this->periode;
  34.     }
  35.     public function setPeriode(int $periode): self
  36.     {
  37.         $this->periode $periode;
  38.         return $this;
  39.     }
  40.     public function getPrix(): ?string
  41.     {
  42.         return $this->prix;
  43.     }
  44.     public function setPrix(string $prix): self
  45.     {
  46.         $this->prix $prix;
  47.         return $this;
  48.     }
  49.     public function getSuspension(): ?\DateTimeInterface
  50.     {
  51.         return $this->suspension;
  52.     }
  53.     public function setSuspension(\DateTimeInterface $suspension): self
  54.     {
  55.         $this->suspension $suspension;
  56.         return $this;
  57.     }
  58.     public function getPacksid(): ?int
  59.     {
  60.         return $this->packsid;
  61.     }
  62.     public function setPacksid(int $packsid): self
  63.     {
  64.         $this->packsid $packsid;
  65.         return $this;
  66.     }
  67.     public function getSitesid(): ?int
  68.     {
  69.         return $this->sitesid;
  70.     }
  71.     public function setSitesid(int $sitesid): self
  72.     {
  73.         $this->sitesid $sitesid;
  74.         return $this;
  75.     }
  76.     public function getCreatedAt(): ?\DateTimeInterface
  77.     {
  78.         return $this->createdat;
  79.     }
  80.     public function setCreatedAt(\DateTimeInterface $createdat): self
  81.     {
  82.         $this->createdat $createdat;
  83.         return $this;
  84.     }
  85.     public function getUpdatedAt(): ?\DateTimeInterface
  86.     {
  87.         return $this->updatedat;
  88.     }
  89.     public function setUpdatedAt(\DateTimeInterface $updatedat): self
  90.     {
  91.         $this->updatedat $updatedat;
  92.         return $this;
  93.     }
  94. }