src/Entity/Sites.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SitesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassSitesRepository::class)]
  6. #[ORM\Table(name'sites')]
  7. class Sites
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $nomsite null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $slug null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $secteursite null;
  19.     #[ORM\Column(type'text')]
  20.     private ?string $detailsite null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $modelsite null;
  23.     #[ORM\Column(length50)]
  24.     private ?string $statutsite null;
  25.     #[ORM\Column]
  26.     private ?int $clientsid null;
  27.     #[ORM\Column(type'datetime'nullabletrue)]
  28.     private ?\DateTimeInterface $createdat null;
  29.     #[ORM\Column(type'datetime'nullabletrue)]
  30.     private ?\DateTimeInterface $updatedat null;
  31.     // ----------------------
  32.     // Getters / Setters
  33.     // ----------------------
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getNomsite(): ?string
  39.     {
  40.         return $this->nomsite;
  41.     }
  42.     public function setNomsite(string $nomsite): self
  43.     {
  44.         $this->nomsite $nomsite;
  45.         return $this;
  46.     }
  47.     public function getSlug(): ?string
  48.     {
  49.         return $this->slug;
  50.     }
  51.     public function setSlug(string $slug): self
  52.     {
  53.         $this->slug $slug;
  54.         return $this;
  55.     }
  56.     public function getSecteursite(): ?string
  57.     {
  58.         return $this->secteursite;
  59.     }
  60.     public function setSecteursite(?string $secteursite): self
  61.     {
  62.         $this->secteursite $secteursite;
  63.         return $this;
  64.     }
  65.     public function getDetailsite(): ?string
  66.     {
  67.         return $this->detailsite;
  68.     }
  69.     public function setDetailsite(string $detailsite): self
  70.     {
  71.         $this->detailsite $detailsite;
  72.         return $this;
  73.     }
  74.     public function getModelsite(): ?string
  75.     {
  76.         return $this->modelsite;
  77.     }
  78.     public function setModelsite(string $modelsite): self
  79.     {
  80.         $this->modelsite $modelsite;
  81.         return $this;
  82.     }
  83.     public function getStatutsite(): ?string
  84.     {
  85.         return $this->statutsite;
  86.     }
  87.     public function setStatutsite(string $statutsite): self
  88.     {
  89.         $this->statutsite $statutsite;
  90.         return $this;
  91.     }
  92.     public function getClientsid(): ?int
  93.     {
  94.         return $this->clientsid;
  95.     }
  96.     public function setClientsid(int $clientsid): self
  97.     {
  98.         $this->clientsid $clientsid;
  99.         return $this;
  100.     }
  101.     public function getCreatedat(): ?\DateTimeInterface
  102.     {
  103.         return $this->createdat;
  104.     }
  105.     public function setCreatedat(?\DateTimeInterface $createdat): self
  106.     {
  107.         $this->createdat $createdat;
  108.         return $this;
  109.     }
  110.     public function getUpdatedat(): ?\DateTimeInterface
  111.     {
  112.         return $this->updatedat;
  113.     }
  114.     public function setUpdatedat(?\DateTimeInterface $updatedat): self
  115.     {
  116.         $this->updatedat $updatedat;
  117.         return $this;
  118.     }
  119. }