Commit 039a9e7f authored by Nicolas Widart's avatar Nicolas Widart

Add docblocks

parent 34dfe4e8
...@@ -4,11 +4,28 @@ use Illuminate\Support\Facades\URL; ...@@ -4,11 +4,28 @@ use Illuminate\Support\Facades\URL;
class MenuRenderer class MenuRenderer
{ {
/**
* @var int Id of the menu to render
*/
protected $menuId; protected $menuId;
/**
* @var string
*/
private $startTag = '<div class="dd">'; private $startTag = '<div class="dd">';
/**
* @var string
*/
private $endTag = '</div>'; private $endTag = '</div>';
/**
* @var string
*/
private $menu = ''; private $menu = '';
/**
* @param $menuId
* @param $menuItems
* @return string
*/
public function renderForMenu($menuId, $menuItems) public function renderForMenu($menuId, $menuItems)
{ {
$this->menuId = $menuId; $this->menuId = $menuId;
...@@ -20,6 +37,10 @@ class MenuRenderer ...@@ -20,6 +37,10 @@ class MenuRenderer
return $this->menu; return $this->menu;
} }
/**
* Generate the html for the given items
* @param $items
*/
private function renderItems($items) private function renderItems($items)
{ {
$this->menu .= '<ol class="dd-list">'; $this->menu .= '<ol class="dd-list">';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment