src/Entity/Services.php line 13
<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="App\Repository\ServicesRepository")
*/
class Services
{
public function __construct(){
$this->isEnabled = false;
}
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(name="title", type="string", length=255, nullable=true)
*/
private $title;
/**
* @ORM\Column(name="description", type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(name="content", type="text", nullable=true)
*/
private $content;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Picture", cascade={"persist","remove"}, orphanRemoval=true)
* @ORM\JoinColumn(nullable=true)
*/
private $banner;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Picture", cascade={"persist","remove"}, orphanRemoval=true)
* @ORM\JoinColumn(nullable=true)
*/
private $icon;
/**
* @ORM\Column(name="isEnabled", type="boolean", nullable=true)
*/
private $isEnabled;
/**
* @ORM\Column(name="createdAt", type="datetime", nullable=true)
*/
private $createdAt;
/**
* @ORM\Column(name="lastUpdate", type="datetime", nullable=true)
*/
private $lastUpdate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $btnText;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $btnLink;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $color;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $tasks;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $resume;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $missions;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $benefits;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $slug;
/**
* @var string
*
* @ORM\Column(length=255, nullable=true)
*/
private $time;
/**
* @var string
*
* @ORM\Column(length=255, nullable=true)
*/
private $cost;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $department;
/**
* @ORM\ManyToOne(targetEntity=ServicesCategories::class, inversedBy="resources", fetch="EAGER")
* @ORM\JoinColumn(nullable=true)
*/
private $category;
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 getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(?string $content): self
{
$this->content = $content;
return $this;
}
public function getBanner(): ?Picture
{
return $this->banner;
}
public function setBanner(?Picture $banner): self
{
if($banner->getTarget()){
$this->banner = $banner;
$this->banner->setDir('upload/images/services');
$this->banner->setThumbnailDir('upload/thumbnails/services');
}
return $this;
}
public function getIcon(): ?Picture
{
return $this->icon;
}
public function setIcon(?Picture $icon): self
{
if($icon->getTarget()){
$this->icon = $icon;
$this->icon->setDir('upload/images/services');
$this->icon->setThumbnailDir('upload/thumbnails/services');
}
return $this;
}
public function getIsEnabled(): ?bool
{
return $this->isEnabled;
}
public function setIsEnabled(?bool $isEnabled): self
{
$this->isEnabled = $isEnabled;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getLastUpdate(): ?\DateTimeInterface
{
return $this->lastUpdate;
}
public function setLastUpdate(?\DateTimeInterface $lastUpdate): self
{
$this->lastUpdate = $lastUpdate;
return $this;
}
public function getBtnText(): ?string
{
return $this->btnText;
}
public function setBtnText(?string $btnText): self
{
$this->btnText = $btnText;
return $this;
}
public function getBtnLink(): ?string
{
return $this->btnLink;
}
public function setBtnLink(?string $btnLink): self
{
$this->btnLink = $btnLink;
return $this;
}
public function getColor(): ?string
{
return $this->color;
}
public function setColor(?string $color): self
{
$this->color = $color;
return $this;
}
public function getTasks(): ?string
{
return $this->tasks;
}
public function setTasks(?string $tasks): self
{
$this->tasks = $tasks;
return $this;
}
public function getResume(): ?string
{
return $this->resume;
}
public function setResume(?string $resume): self
{
$this->resume = $resume;
return $this;
}
public function getMissions(): ?string
{
return $this->missions;
}
public function setMissions(?string $missions): self
{
$this->missions = $missions;
return $this;
}
public function getBenefits(): ?string
{
return $this->benefits;
}
public function setBenefits(?string $benefits): self
{
$this->benefits = $benefits;
return $this;
}
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(?string $slug): self
{
$this->slug = $slug;
return $this;
}
public function getCategory(): ?ServicesCategories
{
return $this->category;
}
public function setCategory(?ServicesCategories $category): self
{
$this->category = $category;
return $this;
}
public function getTime(): ?string
{
return $this->time;
}
public function setTime(?string $time): self
{
$this->time = $time;
return $this;
}
public function getCost(): ?string
{
return $this->cost;
}
public function setCost(?string $cost): self
{
$this->cost = $cost;
return $this;
}
public function getDepartment(): ?string
{
return $this->department;
}
public function setDepartment(?string $department): self
{
$this->department = $department;
return $this;
}
}