<?php
namespace App\Entity;
use App\Repository\AboutUsRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=AboutUsRepository::class)
*/
class AboutUs
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $title;
/**
* @Gedmo\Slug(fields={"title"}, unique=true)
* @ORM\Column(type="string", length=255)
*/
private $slug;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $subTitle;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $background;
/**
* @Assert\Image(maxSize="2M")
*/
private $backgroundFile;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title1;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $image1;
/**
* @Assert\Image(maxSize="2M")
*/
private $imageFile1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $videoLink1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $subTitle2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $image2;
/**
* @Assert\Image(maxSize="2M")
*/
private $imageFile2;
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 getSubTitle(): ?string
{
return $this->subTitle;
}
public function setSubTitle(?string $subTitle): self
{
$this->subTitle = $subTitle;
return $this;
}
public function getBackground(): ?string
{
return $this->background;
}
public function setBackground(?string $background): self
{
$this->background = $background;
return $this;
}
public function getBackgroundFile()
{
return $this->backgroundFile;
}
public function setBackgroundFile($backgroundFile)
{
$this->backgroundFile = $backgroundFile;
return $this;
}
public function getTitle1(): ?string
{
return $this->title1;
}
public function setTitle1(?string $title1): self
{
$this->title1 = $title1;
return $this;
}
public function getDescription1(): ?string
{
return $this->description1;
}
public function setDescription1(?string $description1): self
{
$this->description1 = $description1;
return $this;
}
public function getImage1(): ?string
{
return $this->image1;
}
public function setImage1(?string $image1): self
{
$this->image1 = $image1;
return $this;
}
public function getImageFile1()
{
return $this->imageFile1;
}
public function setImageFile1($imageFile1)
{
$this->imageFile1 = $imageFile1;
return $this;
}
public function getVideoLink1(): ?string
{
return $this->videoLink1;
}
public function setVideoLink1(?string $videoLink1): self
{
$this->videoLink1 = $videoLink1;
return $this;
}
public function getTitle2(): ?string
{
return $this->title2;
}
public function setTitle2(?string $title2): self
{
$this->title2 = $title2;
return $this;
}
public function getSubTitle2(): ?string
{
return $this->subTitle2;
}
public function setSubTitle2(?string $subTitle2): self
{
$this->subTitle2 = $subTitle2;
return $this;
}
public function getImage2(): ?string
{
return $this->image2;
}
public function setImage2(?string $image2): self
{
$this->image2 = $image2;
return $this;
}
public function getImageFile2()
{
return $this->imageFile2;
}
public function setImageFile2($imageFile2)
{
$this->imageFile2 = $imageFile2;
return $this;
}
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(string $slug): self
{
$this->slug = $slug;
return $this;
}
}