src/Entity/Magazine.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MagazineRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMagazineRepository::class)]
  6. class Magazine
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private $surtitre;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $title;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $soustitre;
  18.     #[ORM\ManyToOne(targetEntityMenu::class, inversedBy'magazines')]
  19.     private $menu;
  20.     #[ORM\Column(type'json'nullabletrue)]
  21.     private $images = [];
  22.     #[ORM\Column(type'text'nullabletrue)]
  23.     private $content1;
  24.     #[ORM\Column(type'text'nullabletrue)]
  25.     private $content2;
  26.     #[ORM\Column(type'text'nullabletrue)]
  27.     private $content3;
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private $signature;
  30.     #[ORM\Column(type'boolean'nullabletrue)]
  31.     private $statut;
  32.     #[ORM\ManyToOne(targetEntitySousmenu::class, inversedBy'magazines')]
  33.     private $sousmenu;
  34.     #[ORM\ManyToOne(targetEntitySousmenu2::class, inversedBy'magazines')]
  35.     private $sousmenu2;
  36.     #[ORM\Column(type'datetime_immutable'nullabletrue)]
  37.     private $createdAt;
  38.     #[ORM\Column(type'datetime_immutable'nullabletrue)]
  39.     private $updatedAt;
  40.     #[ORM\Column(type'string'length255nullabletrue)]
  41.     private $path;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getSurtitre(): ?string
  47.     {
  48.         return $this->surtitre;
  49.     }
  50.     public function setSurtitre(?string $surtitre): self
  51.     {
  52.         $this->surtitre $surtitre;
  53.         return $this;
  54.     }
  55.     public function getTitle(): ?string
  56.     {
  57.         return $this->title;
  58.     }
  59.     public function setTitle(?string $title): self
  60.     {
  61.         $this->title $title;
  62.         return $this;
  63.     }
  64.     public function getSoustitre(): ?string
  65.     {
  66.         return $this->soustitre;
  67.     }
  68.     public function setSoustitre(?string $soustitre): self
  69.     {
  70.         $this->soustitre $soustitre;
  71.         return $this;
  72.     }
  73.     public function getMenu(): ?Menu
  74.     {
  75.         return $this->menu;
  76.     }
  77.     public function setMenu(?Menu $menu): self
  78.     {
  79.         $this->menu $menu;
  80.         return $this;
  81.     }
  82.     public function getImages(): ?array
  83.     {
  84.         return $this->images;
  85.     }
  86.     public function setImages(?array $images): self
  87.     {
  88.         $this->images $images;
  89.         return $this;
  90.     }
  91.     public function getContent1(): ?string
  92.     {
  93.         return $this->content1;
  94.     }
  95.     public function setContent1(?string $content1): self
  96.     {
  97.         $this->content1 $content1;
  98.         return $this;
  99.     }
  100.     public function getContent2(): ?string
  101.     {
  102.         return $this->content2;
  103.     }
  104.     public function setContent2(?string $content2): self
  105.     {
  106.         $this->content2 $content2;
  107.         return $this;
  108.     }
  109.     public function getContent3(): ?string
  110.     {
  111.         return $this->content3;
  112.     }
  113.     public function setContent3(?string $content3): self
  114.     {
  115.         $this->content3 $content3;
  116.         return $this;
  117.     }
  118.     public function getSignature(): ?string
  119.     {
  120.         return $this->signature;
  121.     }
  122.     public function setSignature(?string $signature): self
  123.     {
  124.         $this->signature $signature;
  125.         return $this;
  126.     }
  127.     public function isStatut(): ?bool
  128.     {
  129.         return $this->statut;
  130.     }
  131.     public function setStatut(?bool $statut): self
  132.     {
  133.         $this->statut $statut;
  134.         return $this;
  135.     }
  136.     public function getSousmenu(): ?Sousmenu
  137.     {
  138.         return $this->sousmenu;
  139.     }
  140.     public function setSousmenu(?Sousmenu $sousmenu): self
  141.     {
  142.         $this->sousmenu $sousmenu;
  143.         return $this;
  144.     }
  145.     public function getSousmenu2(): ?Sousmenu2
  146.     {
  147.         return $this->sousmenu2;
  148.     }
  149.     public function setSousmenu2(?Sousmenu2 $sousmenu2): self
  150.     {
  151.         $this->sousmenu2 $sousmenu2;
  152.         return $this;
  153.     }
  154.     public function getCreatedAt(): ?\DateTimeImmutable
  155.     {
  156.         return $this->createdAt;
  157.     }
  158.     public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  159.     {
  160.         $this->createdAt $createdAt;
  161.         return $this;
  162.     }
  163.     public function getUpdatedAt(): ?\DateTimeImmutable
  164.     {
  165.         return $this->updatedAt;
  166.     }
  167.     public function setUpdatedAt(?\DateTimeImmutable $updatedAt): self
  168.     {
  169.         $this->updatedAt $updatedAt;
  170.         return $this;
  171.     }
  172.     public function getPath(): ?string
  173.     {
  174.         return $this->path;
  175.     }
  176.     public function setPath(?string $path): self
  177.     {
  178.         $this->path $path;
  179.         return $this;
  180.     }
  181. }