<?php
namespace App\Entity;
use App\Repository\AboutRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=AboutRepository::class)
*/
class About {
use \App\Traits\CommonTrt;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $title;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $content;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $summary;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $image;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $bannerImg;
/**
* @ORM\Column(type="string", length=255)
*/
private $slug;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $urlVideo;
/**
* @ORM\Column(type="boolean")
*/
private $isActive;
/**
* @ORM\ManyToOne(targetEntity=Lang::class, inversedBy="abouts")
*/
private $langue;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title2;
/**
* @ORM\ManyToMany(targetEntity=Tag::class, inversedBy="abouts")
*/
private $tag;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $subtiltes;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $illustration;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $imgKara;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $imgSokode;
/**
* @ORM\OneToMany(targetEntity=Historiques::class, mappedBy="about")
*/
private $historiques;
public function __construct()
{
$this->tag = new ArrayCollection();
$this->historiques = new ArrayCollection();
}
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 getSummary(): ?string {
return $this->summary;
}
public function setSummary(?string $summary): self {
$this->summary = $summary;
return $this;
}
public function getImage(): ?string {
return $this->image;
}
public function setImage(?string $image): self {
$this->image = $image;
return $this;
}
public function getBannerImg(): ?string {
return $this->bannerImg;
}
public function setBannerImg(?string $bannerImg): self {
$this->bannerImg = $bannerImg;
return $this;
}
public function getSlug(): ?string {
return $this->slug;
}
public function setSlug(string $slug): self {
$this->slug = $slug;
return $this;
}
public function getUrlVideo(): ?string {
return $this->urlVideo;
}
public function setUrlVideo(?string $urlVideo): self {
$this->urlVideo = $urlVideo;
return $this;
}
public function isIsActive(): ?bool
{
return $this->isActive;
}
public function setIsActive(bool $isActive): self
{
$this->isActive = $isActive;
return $this;
}
public function getLangue(): ?Lang
{
return $this->langue;
}
public function setLangue(?Lang $langue): self
{
$this->langue = $langue;
return $this;
}
public function getTitle2(): ?string
{
return $this->title2;
}
public function setTitle2(?string $title2): self
{
$this->title2 = $title2;
return $this;
}
/**
* @return Collection<int, Tag>
*/
public function getTag(): Collection
{
return $this->tag;
}
public function addTag(Tag $tag): self
{
if (!$this->tag->contains($tag)) {
$this->tag[] = $tag;
}
return $this;
}
public function removeTag(Tag $tag): self
{
$this->tag->removeElement($tag);
return $this;
}
public function getSubtiltes(): ?string
{
return $this->subtiltes;
}
public function setSubtiltes(?string $subtiltes): self
{
$this->subtiltes = $subtiltes;
return $this;
}
public function getIllustration(): ?string
{
return $this->illustration;
}
public function setIllustration(?string $illustration): self
{
$this->illustration = $illustration;
return $this;
}
public function getImgKara(): ?string
{
return $this->imgKara;
}
public function setImgKara(?string $imgKara): self
{
$this->imgKara = $imgKara;
return $this;
}
public function getImgSokode(): ?string
{
return $this->imgSokode;
}
public function setImgSokode(?string $imgSokode): self
{
$this->imgSokode = $imgSokode;
return $this;
}
/**
* @return Collection<int, Historiques>
*/
public function getHistoriques(): Collection
{
return $this->historiques;
}
public function addHistorique(Historiques $historique): self
{
if (!$this->historiques->contains($historique)) {
$this->historiques[] = $historique;
$historique->setAbout($this);
}
return $this;
}
public function removeHistorique(Historiques $historique): self
{
if ($this->historiques->removeElement($historique)) {
// set the owning side to null (unless already changed)
if ($historique->getAbout() === $this) {
$historique->setAbout(null);
}
}
return $this;
}
}