<?php
namespace App\Entity;
use App\Repository\MagazineRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MagazineRepository::class)]
class Magazine
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $surtitre;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $title;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $soustitre;
#[ORM\ManyToOne(targetEntity: Menu::class, inversedBy: 'magazines')]
private $menu;
#[ORM\Column(type: 'json', nullable: true)]
private $images = [];
#[ORM\Column(type: 'text', nullable: true)]
private $content1;
#[ORM\Column(type: 'text', nullable: true)]
private $content2;
#[ORM\Column(type: 'text', nullable: true)]
private $content3;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $signature;
#[ORM\Column(type: 'boolean', nullable: true)]
private $statut;
#[ORM\ManyToOne(targetEntity: Sousmenu::class, inversedBy: 'magazines')]
private $sousmenu;
#[ORM\ManyToOne(targetEntity: Sousmenu2::class, inversedBy: 'magazines')]
private $sousmenu2;
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private $createdAt;
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private $updatedAt;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $path;
public function getId(): ?int
{
return $this->id;
}
public function getSurtitre(): ?string
{
return $this->surtitre;
}
public function setSurtitre(?string $surtitre): self
{
$this->surtitre = $surtitre;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getSoustitre(): ?string
{
return $this->soustitre;
}
public function setSoustitre(?string $soustitre): self
{
$this->soustitre = $soustitre;
return $this;
}
public function getMenu(): ?Menu
{
return $this->menu;
}
public function setMenu(?Menu $menu): self
{
$this->menu = $menu;
return $this;
}
public function getImages(): ?array
{
return $this->images;
}
public function setImages(?array $images): self
{
$this->images = $images;
return $this;
}
public function getContent1(): ?string
{
return $this->content1;
}
public function setContent1(?string $content1): self
{
$this->content1 = $content1;
return $this;
}
public function getContent2(): ?string
{
return $this->content2;
}
public function setContent2(?string $content2): self
{
$this->content2 = $content2;
return $this;
}
public function getContent3(): ?string
{
return $this->content3;
}
public function setContent3(?string $content3): self
{
$this->content3 = $content3;
return $this;
}
public function getSignature(): ?string
{
return $this->signature;
}
public function setSignature(?string $signature): self
{
$this->signature = $signature;
return $this;
}
public function isStatut(): ?bool
{
return $this->statut;
}
public function setStatut(?bool $statut): self
{
$this->statut = $statut;
return $this;
}
public function getSousmenu(): ?Sousmenu
{
return $this->sousmenu;
}
public function setSousmenu(?Sousmenu $sousmenu): self
{
$this->sousmenu = $sousmenu;
return $this;
}
public function getSousmenu2(): ?Sousmenu2
{
return $this->sousmenu2;
}
public function setSousmenu2(?Sousmenu2 $sousmenu2): self
{
$this->sousmenu2 = $sousmenu2;
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 getPath(): ?string
{
return $this->path;
}
public function setPath(?string $path): self
{
$this->path = $path;
return $this;
}
}