src/Entity/Actualites.php line 11

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