<?php
namespace App\Entity\Modules;
use App\Repository\Modules\modulesRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=modulesRepository::class)
*/
class Modules
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $name;
/**
* @ORM\Column(type="string", length=100)
*/
private $route;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $icon;
/**
* @ORM\Column(type="integer")
*/
private $parent;
/**
* @ORM\Column(type="integer", options={"default": 99})
*/
private $menuPosition = 99;
/**
* @ORM\Column(type="smallint", options={"default": 0})
*/
private $popupOpen = 0;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getRoute(): ?string
{
return $this->route;
}
public function setRoute(string $route): self
{
$this->route = $route;
return $this;
}
public function getIcon(): ?string
{
return $this->icon;
}
public function setIcon(?string $icon): self
{
$this->icon = $icon;
return $this;
}
public function getParent(): ?int
{
return $this->parent;
}
public function setParent(int $parent): self
{
$this->parent = $parent;
return $this;
}
public function getMenuPosition(): ?int
{
return $this->menuPosition;
}
public function setMenuPosition(int $menuPosition): self
{
$this->menuPosition = $menuPosition;
return $this;
}
public function getPopupOpen(): ?int
{
return $this->popupOpen;
}
public function setPopupOpen(int $popupOpen): self
{
$this->popupOpen = $popupOpen;
return $this;
}
}