<?php
namespace App\Entity;
use App\Repository\AbonnementsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: AbonnementsRepository::class)]
class Abonnements
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $periode = null;
#[ORM\Column(length: 10)]
private ?string $prix = null;
#[ORM\Column(type: 'datetime')]
private ?\DateTimeInterface $suspension = null;
#[ORM\Column]
private ?int $packsid = null;
#[ORM\Column]
private ?int $sitesid = null;
#[ORM\Column(type: 'datetime')]
private ?\DateTimeInterface $createdat = null;
#[ORM\Column(type: 'datetime')]
private ?\DateTimeInterface $updatedat = null;
// Getters / Setters
public function getId(): ?int
{
return $this->id;
}
public function getPeriode(): ?int
{
return $this->periode;
}
public function setPeriode(int $periode): self
{
$this->periode = $periode;
return $this;
}
public function getPrix(): ?string
{
return $this->prix;
}
public function setPrix(string $prix): self
{
$this->prix = $prix;
return $this;
}
public function getSuspension(): ?\DateTimeInterface
{
return $this->suspension;
}
public function setSuspension(\DateTimeInterface $suspension): self
{
$this->suspension = $suspension;
return $this;
}
public function getPacksid(): ?int
{
return $this->packsid;
}
public function setPacksid(int $packsid): self
{
$this->packsid = $packsid;
return $this;
}
public function getSitesid(): ?int
{
return $this->sitesid;
}
public function setSitesid(int $sitesid): self
{
$this->sitesid = $sitesid;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdat;
}
public function setCreatedAt(\DateTimeInterface $createdat): self
{
$this->createdat = $createdat;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedat;
}
public function setUpdatedAt(\DateTimeInterface $updatedat): self
{
$this->updatedat = $updatedat;
return $this;
}
}