src/Entity/LegalInfo.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\LegalInfoRepository;
  5. #[ORM\Entity(repositoryClassLegalInfoRepository::class)]
  6. class LegalInfo
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $title;
  14.     #[ORM\Column(type'text')]
  15.     private $content;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $type;
  18.     #[ORM\ManyToOne(targetEntityWebsiteLanguage::class, inversedBy'LegalInfos')]
  19.     private $language;
  20.     #[ORM\Column(type'datetime'nullabletrue)]
  21.     private $updatedAt;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getTitle(): ?string
  27.     {
  28.         return $this->title;
  29.     }
  30.     public function setTitle(string $title): self
  31.     {
  32.         $this->title $title;
  33.         return $this;
  34.     }
  35.     public function getContent(): ?string
  36.     {
  37.         return $this->content;
  38.     }
  39.     public function setContent(string $content): self
  40.     {
  41.         $this->content $content;
  42.         return $this;
  43.     }
  44.     public function getType(): ?string
  45.     {
  46.         return $this->type;
  47.     }
  48.     public function setType(?string $type): self
  49.     {
  50.         $this->type $type;
  51.         return $this;
  52.     }
  53.     public function getLanguage(): ?WebsiteLanguage
  54.     {
  55.         return $this->language;
  56.     }
  57.     public function setLanguage(?WebsiteLanguage $language): self
  58.     {
  59.         $this->language $language;
  60.         return $this;
  61.     }
  62.     public function getUpdatedAt(): ?\DateTimeInterface
  63.     {
  64.         return $this->updatedAt;
  65.     }
  66.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  67.     {
  68.         $this->updatedAt $updatedAt;
  69.         return $this;
  70.     }
  71. }