<?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_module")
* @ORM\Entity()
*/
class PageModule
{
use EntityTimestampableTrait;
use EntitySoftDeletableTrait;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="Module")
*/
private $module;
/**
* @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;
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getModule()
{
return $this->module;
}
/**
* @param mixed $module
*/
public function setModule($module): void
{
$this->module = $module;
}
/**
* @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;
}
}