src/Entity/Alert.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity(repositoryClass\App\Repository\AlertRepository::class)]
  5. class Alert implements \Stringable
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\GeneratedValue]
  9.     #[ORM\Column(type'integer')]
  10.     private int $id;
  11.     #[ORM\Column(type'string'length255nullabletrue)]
  12.     private ?string $kind "";
  13.     #[ORM\Column(type'string'length255nullabletrue)]
  14.     private ?string $title"";
  15.     #[ORM\Column(type'text'nullabletrue)]
  16.     private ?string $short_description"";
  17.     #[ORM\Column(type'datetime'nullabletrue)]
  18.     private mixed $date_debut;
  19.     #[ORM\Column(type'datetime'nullabletrue)]
  20.     private mixed $date_fin;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private ?string $link"";
  23.     public function getId(): int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getKind(): ?string
  28.     {
  29.         return $this->kind;
  30.     }
  31.     public function setKind(?string $kind): self
  32.     {
  33.         $this->kind $kind;
  34.         return $this;
  35.     }
  36.     public function getTitle(): ?string
  37.     {
  38.         return $this->title;
  39.     }
  40.     public function setTitle(?string $title): self
  41.     {
  42.         $this->title $title;
  43.         return $this;
  44.     }
  45.     public function getShortDescription(): ?string
  46.     {
  47.         return $this->short_description;
  48.     }
  49.     public function setShortDescription(?string $short_description): self
  50.     {
  51.         $this->short_description $short_description;
  52.         return $this;
  53.     }
  54.     public function getDateDebut(): ?\DateTimeInterface
  55.     {
  56.         return $this->date_debut;
  57.     }
  58.     public function setDateDebut(?\DateTimeInterface $date_debut): self
  59.     {
  60.         $this->date_debut $date_debut;
  61.         return $this;
  62.     }
  63.     public function getDateFin(): ?\DateTimeInterface
  64.     {
  65.         return $this->date_fin;
  66.     }
  67.     public function setDateFin(?\DateTimeInterface $date_fin): self
  68.     {
  69.         $this->date_fin $date_fin;
  70.         return $this;
  71.     }
  72.     public function getLink(): ?string
  73.     {
  74.         return $this->link;
  75.     }
  76.     public function setLink(?string $link): self
  77.     {
  78.         $this->link $link;
  79.         return $this;
  80.     }
  81.     public function __toString(): string
  82.     {
  83.         return (string) $this->title;
  84.     }
  85. }