<?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_button")
* @ORM\Entity()
*/
class PageButton
{
use EntityTimestampableTrait;
use EntitySoftDeletableTrait;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $link;
/**
* @ORM\ManyToOne(targetEntity="SonataMediaMedia")
*/
private $icon;
/**
* @ORM\ManyToOne(targetEntity="SonataMediaMedia")
*/
private $iconPhone;
/**
* @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 getTitle()
{
return $this->title;
}
/**
* @param mixed $title
*/
public function setTitle($title): void
{
$this->title = $title;
}
/**
* @return mixed
*/
public function getLink()
{
return $this->link;
}
/**
* @param mixed $link
*/
public function setLink($link): void
{
$this->link = $link;
}
/**
* @return mixed
*/
public function getIcon()
{
return $this->icon;
}
/**
* @param mixed $icon
*/
public function setIcon($icon): void
{
$this->icon = $icon;
}
/**
* @return mixed
*/
public function getIconPhone()
{
return $this->iconPhone;
}
/**
* @param mixed $iconPhone
*/
public function setIconPhone($iconPhone): void
{
$this->iconPhone = $iconPhone;
}
}