44 lines
802 B
PHP
44 lines
802 B
PHP
<?php
|
|
|
|
namespace Trinity\Bundle\DashBoardBundle\Item;
|
|
|
|
use Trinity\Bundle\DashBoardBundle\Item\BasicItem;
|
|
|
|
class ModuleItem extends BasicItem
|
|
{
|
|
protected $route = null;
|
|
protected $icon = null;
|
|
|
|
public function __construct($name, $route, $icon, $template = 'TrinityDashBoardBundle:Default:defaultModuleItem.html.twig')
|
|
{
|
|
$this->route = $route;
|
|
$this->icon = $icon;
|
|
|
|
parent::__construct($name, $template);
|
|
}
|
|
|
|
public function setRoute($route)
|
|
{
|
|
$this->route = $route;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getRoute()
|
|
{
|
|
return $this->route;
|
|
}
|
|
|
|
public function setIcon($icon)
|
|
{
|
|
$this->icon = $icon;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getIcon()
|
|
{
|
|
return $this->icon;
|
|
}
|
|
}
|