<?php
declare(strict_types=1);
namespace App\Entity;
use App\Entity\Traits\EntitySoftDeletableTrait;
use App\Entity\Traits\EntityTimestampableTrait;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="page_slider")
* @ORM\Entity()
*/
class PageSlider
{
use EntityTimestampableTrait;
use EntitySoftDeletableTrait;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $subTitle;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $descTitle;
/**
* @ORM\ManyToOne(targetEntity="SonataMediaMedia")
*/
private $media;
/**
* @ORM\ManyToOne(targetEntity="Page")
*/
private $page;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $position;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $active;
public function __construct()
{
$this->active = true;
$this->position = 1;
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getPage()
{
return $this->page;
}
/**
* @param mixed $page
*/
public function setPage($page): void
{
$this->page = $page;
}
/**
* @return mixed
*/
public function getPosition()
{
return $this->position;
}
/**
* @param mixed $position
*/
public function setPosition($position): void
{
$this->position = $position;
}
/**
* @return mixed
*/
public function getActive()
{
return $this->active;
}
/**
* @param mixed $active
*/
public function setActive($active): void
{
$this->active = $active;
}
/**
* @return mixed
*/
public function getSubTitle()
{
return $this->subTitle;
}
/**
* @param mixed $subTitle
*/
public function setSubTitle($subTitle): void
{
$this->subTitle = $subTitle;
}
/**
* @return mixed
*/
public function getDescTitle()
{
return $this->descTitle;
}
/**
* @param mixed $descTitle
*/
public function setDescTitle($descTitle): void
{
$this->descTitle = $descTitle;
}
/**
* @return mixed
*/
public function getMedia()
{
return $this->media;
}
/**
* @param mixed $media
*/
public function setMedia($media): void
{
$this->media = $media;
}
}