for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace NukaCode\Menu;
use NukaCode\Menu\Traits\Activate;
use NukaCode\Menu\Traits\Insertable;
/**
* Class Link
*
* @package NukaCode\Menu
*/
class Link {
use Insertable;
use Activate;
* The link slug
* @var string
public $slug;
* Name of the link
public $name;
* Link url
public $url;
* Additional options for links
* @var array
public $options = [];
* Get a menu option
* @param $name The name of the menu option
* @return string|bool Return the menu option if it exists or false.
public function getOption($name)
{
if (isset($this->options[$name])) {
return $this->options[$name];
}
return false;
* Check if the current object is a drop down
* @return bool
public function isDropDown()