src/Entity/Annonces.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Trait\TimestampableTrait;
  5. use App\Repository\AnnoncesRepository;
  6. #[ORM\Entity(repositoryClassAnnoncesRepository::class)]
  7. #[ORM\HasLifecycleCallbacks]
  8. class Annonces
  9. {
  10.     use TimestampableTrait;
  11.     /* #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column(type: 'integer')]
  14.     private $id; */
  15.     #[ORM\Column(type'string'length255nullabletrue)]
  16.     private $title;
  17.     #[ORM\Column(type'text'nullabletrue)]
  18.     private $content;
  19.     #[ORM\Column(type'json'nullabletrue)]
  20.     private $image = [];
  21.     #[ORM\ManyToOne(targetEntitySousmenu::class, inversedBy'annonces')]
  22.     private $sousmenu;
  23.     #[ORM\Column(type'json'nullabletrue)]
  24.     private $video = [];
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?bool $statut null;
  27.     /* #[ORM\Column(type: 'datetime_immutable', nullable: true)]
  28.     private $createdAt;
  29.     #[ORM\Column(type: 'datetime_immutable', nullable: true)]
  30.     private $updatedAt; */
  31.    /*  public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  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 getContent(): ?string
  46.     {
  47.         return $this->content;
  48.     }
  49.     public function setContent(?string $content): self
  50.     {
  51.         $this->content $content;
  52.         return $this;
  53.     }
  54.     public function getImage(): ?array
  55.     {
  56.         return $this->image;
  57.     }
  58.     public function setImage(?array $image): self
  59.     {
  60.         $this->image $image;
  61.         return $this;
  62.     }
  63.     public function getSousmenu(): ?Sousmenu
  64.     {
  65.         return $this->sousmenu;
  66.     }
  67.     public function setSousmenu(?Sousmenu $sousmenu): self
  68.     {
  69.         $this->sousmenu $sousmenu;
  70.         return $this;
  71.     }
  72.     public function getVideo(): ?array
  73.     {
  74.         return $this->video;
  75.     }
  76.     public function setVideo(?array $video): self
  77.     {
  78.         $this->video $video;
  79.         return $this;
  80.     }
  81.     /* public function getCreatedAt(): ?\DateTimeImmutable
  82.     {
  83.         return $this->createdAt;
  84.     }
  85.     public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  86.     {
  87.         $this->createdAt = $createdAt;
  88.         return $this;
  89.     }
  90.     public function getUpdatedAt(): ?\DateTimeImmutable
  91.     {
  92.         return $this->updatedAt;
  93.     }
  94.     public function setUpdatedAt(?\DateTimeImmutable $updatedAt): self
  95.     {
  96.         $this->updatedAt = $updatedAt;
  97.         return $this;
  98.     } */
  99.     public function isStatut(): ?bool
  100.     {
  101.         return $this->statut;
  102.     }
  103.     public function setStatut(?bool $statut): self
  104.     {
  105.         $this->statut $statut;
  106.         return $this;
  107.     }
  108. }