<?php
namespace App\Entity;
use App\Trait\TimestampableTrait;
use App\Repository\ActualitesRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ActualitesRepository::class)]
#[ORM\HasLifecycleCallbacks]
class Actualites
{
use TimestampableTrait;
/* #[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
*/
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $title;
#[ORM\Column(type: 'text', nullable: true)]
private $content;
#[ORM\ManyToOne(targetEntity: Sousmenu::class, inversedBy: 'actualites')]
private $sousmenu;
#[ORM\Column(type: 'json', nullable: true)]
private $image = [];
#[ORM\Column(type: 'json',nullable: true)]
private $video = [];
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $path;
#[ORM\Column(nullable: true)]
private ?bool $status = null;
/* #[ORM\Column(type: 'datetime_immutable', nullable: true)]
private $createdAt;
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private $updatedAt; */
/* public function getId(): ?int
{
return $this->id;
} */
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(?string $content): self
{
$this->content = $content;
return $this;
}
public function getSousmenu(): ?Sousmenu
{
return $this->sousmenu;
}
public function setSousmenu(?Sousmenu $sousmenu): self
{
$this->sousmenu = $sousmenu;
return $this;
}
public function getImage(): ?array
{
return $this->image;
}
public function setImage(?array $image): self
{
$this->image = $image;
return $this;
}
public function getVideo(): ?array
{
return $this->video;
}
public function setVideo(?array $video): self
{
$this->video = $video;
return $this;
}
public function getPath(): ?string
{
return $this->path;
}
public function setPath(?string $path): self
{
$this->path = $path;
return $this;
}
/* public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeImmutable $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
} */
public function isStatus(): ?bool
{
return $this->status;
}
public function setStatus(?bool $status): self
{
$this->status = $status;
return $this;
}
}