<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\LegalInfoRepository;
#[ORM\Entity(repositoryClass: LegalInfoRepository::class)]
class LegalInfo
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $title;
#[ORM\Column(type: 'text')]
private $content;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $type;
#[ORM\ManyToOne(targetEntity: WebsiteLanguage::class, inversedBy: 'LegalInfos')]
private $language;
#[ORM\Column(type: 'datetime', 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 getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
public function getLanguage(): ?WebsiteLanguage
{
return $this->language;
}
public function setLanguage(?WebsiteLanguage $language): self
{
$this->language = $language;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
}