src/Flexy/FrontBundle/Entity/Newshome.php line 10

  1. <?php
  2. namespace App\Flexy\FrontBundle\Entity;
  3. use App\Flexy\FrontBundle\Repository\NewshomeRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassNewshomeRepository::class)]
  7. class Newshome
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $title null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $description null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $image null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $date_debut null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $date_fin null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $under_title null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $type null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getTitle(): ?string
  32.     {
  33.         return $this->title;
  34.     }
  35.     public function setTitle(?string $title): static
  36.     {
  37.         $this->title $title;
  38.         return $this;
  39.     }
  40.     public function getDescription(): ?string
  41.     {
  42.         return $this->description;
  43.     }
  44.     public function setDescription(?string $description): static
  45.     {
  46.         $this->description $description;
  47.         return $this;
  48.     }
  49.     public function getImage(): ?string
  50.     {
  51.         return $this->image;
  52.     }
  53.     public function setImage(?string $image): static
  54.     {
  55.         $this->image $image;
  56.         return $this;
  57.     }
  58.     public function getDateDebut(): ?\DateTimeInterface
  59.     {
  60.         return $this->date_debut;
  61.     }
  62.     public function setDateDebut(?\DateTimeInterface $date_debut): static
  63.     {
  64.         $this->date_debut $date_debut;
  65.         return $this;
  66.     }
  67.     public function getDateFin(): ?\DateTimeInterface
  68.     {
  69.         return $this->date_fin;
  70.     }
  71.     public function setDateFin(?\DateTimeInterface $date_fin): static
  72.     {
  73.         $this->date_fin $date_fin;
  74.         return $this;
  75.     }
  76.     public function getUnderTitle(): ?string
  77.     {
  78.         return $this->under_title;
  79.     }
  80.     public function setUnderTitle(?string $under_title): static
  81.     {
  82.         $this->under_title $under_title;
  83.         return $this;
  84.     }
  85.     public function getType(): ?string
  86.     {
  87.         return $this->type;
  88.     }
  89.     public function setType(?string $type): static
  90.     {
  91.         $this->type $type;
  92.         return $this;
  93.     }
  94. }