Your IP : 216.73.217.64
<?php
namespace ls\menu;
class Menu implements MenuInterface
{
protected $isDropDown = false;
protected $label = "Missing label";
protected $href = "#";
protected $menuItems = array();
/**
* @param array $options - Options for either dropdown menu or plain link
* @return ExtraMenu
*/
public function __construct($options)
{
if (isset($options['isDropDown']))
{
$this->isDropDown = $options['isDropDown'];
}
if (isset($options['label']))
{
$this->label = $options['label'];
}
if (isset($options['href']))
{
$this->href = $options['href'];
}
if (isset($options['menuItems']))
{
$this->menuItems = $options['menuItems'];
}
}
public function isDropDown() { return $this->isDropDown; }
public function getLabel() { return $this->label; }
public function getHref() { return $this->href; }
public function getMenuItems() { return $this->menuItems; }
}