src/Entity/Initiative.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InitiativeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Uid\Uuid;
  6. /**
  7.  * @ORM\Entity(repositoryClass=InitiativeRepository::class)
  8.  */
  9. class Initiative
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $uuid;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $token;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $slug;
  29.     /**
  30.      * @ORM\Column(type="boolean", nullable=true)
  31.      */
  32.     private $statut false;
  33.     /**
  34.      * @ORM\Column(type="datetime_immutable", nullable=true)
  35.      */
  36.     private $createdAt;
  37.     /**
  38.      * @ORM\Column(type="datetime", nullable=true)
  39.      */
  40.     private $updatedAt;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $titre;
  45.     /**
  46.      * @ORM\Column(type="text", nullable=true)
  47.      */
  48.     private $description;
  49.     /**
  50.      * @ORM\Column(type="text", nullable=true)
  51.      */
  52.     private $lien;
  53.     /**
  54.      * @ORM\Column(type="integer", nullable=true)
  55.      */
  56.     private $listorder;
  57.     public function __construct()
  58.     {
  59.         $this->uuid Uuid::v4();
  60.     }
  61.     public function getId(): ?int
  62.     {
  63.         return $this->id;
  64.     }
  65.     public function getUuid(): ?string
  66.     {
  67.         return $this->uuid;
  68.     }
  69.     public function setUuid(?string $uuid): self
  70.     {
  71.         $this->uuid $uuid;
  72.         return $this;
  73.     }
  74.     public function getToken(): ?string
  75.     {
  76.         return $this->token;
  77.     }
  78.     public function setToken(?string $token): self
  79.     {
  80.         $this->token $token;
  81.         return $this;
  82.     }
  83.     public function getSlug(): ?string
  84.     {
  85.         return $this->slug;
  86.     }
  87.     public function setSlug(?string $slug): self
  88.     {
  89.         $this->slug $slug;
  90.         return $this;
  91.     }
  92.     public function isStatut(): ?bool
  93.     {
  94.         return $this->statut;
  95.     }
  96.     public function setStatut(?bool $statut): self
  97.     {
  98.         $this->statut $statut;
  99.         return $this;
  100.     }
  101.     public function getCreatedAt(): ?\DateTimeImmutable
  102.     {
  103.         return $this->createdAt;
  104.     }
  105.     public function setCreatedAt(?\DateTimeImmutable $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.     public function getTitre(): ?string
  120.     {
  121.         return $this->titre;
  122.     }
  123.     public function setTitre(?string $titre): self
  124.     {
  125.         $this->titre $titre;
  126.         return $this;
  127.     }
  128.     public function getDescription(): ?string
  129.     {
  130.         return $this->description;
  131.     }
  132.     public function setDescription(?string $description): self
  133.     {
  134.         $this->description $description;
  135.         return $this;
  136.     }
  137.     public function getLien(): ?string
  138.     {
  139.         return $this->lien;
  140.     }
  141.     public function setLien(?string $lien): self
  142.     {
  143.         $this->lien $lien;
  144.         return $this;
  145.     }
  146.     public function getListorder(): ?int
  147.     {
  148.         return $this->listorder;
  149.     }
  150.     public function setListorder(?int $listorder): self
  151.     {
  152.         $this->listorder $listorder;
  153.         return $this;
  154.     }
  155. }