<?php
declare(strict_types=1);
namespace App\Entity;
use App\Entity\BaseDomain;
use App\Entity\Traits\EntityTimestampableTrait;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity
*/
class OutdoorSafety extends BaseDomain
{
use EntityTimestampableTrait;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private int $id;
/**
* @ORM\Column(type="string", length=255)
*/
private string $title;
/**
* @ORM\Column(type="text")
*/
private string $description;
/**
* @ORM\Column(type="boolean", options={"default": false})
*/
private bool $showOnHomepage;
/**
* @Gedmo\SortablePosition
* @ORM\Column(type="integer")
*/
private int $sortPosition;
/**
* @ORM\Column(type="boolean", options={"default": true})
*/
private bool $isVisible = true;
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 isShowOnHomepage(): bool
{
return $this->showOnHomepage;
}
public function setShowOnHomepage(bool $showOnHomepage): self
{
$this->showOnHomepage = $showOnHomepage;
return $this;
}
public function getSortPosition(): int
{
return $this->sortPosition;
}
public function setSortPosition(int $sortPosition): self
{
$this->sortPosition = $sortPosition;
return $this;
}
public function isVisible(): bool
{
return $this->isVisible;
}
public function setIsVisible(bool $isVisible): self
{
$this->isVisible = $isVisible;
return $this;
}
public function getLang(): string
{
return $this->lang;
}
public function setLang(string $lang): self
{
$this->lang = $lang;
return $this;
}
}