| 1 | <?php namespace NukaCode\Menu; |
||
| 11 | class Link { |
||
| 12 | use Insertable; |
||
| 13 | use Activate; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The link slug |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | public $slug; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Name of the link |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | public $name; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Link url |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | public $url; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Additional options for links |
||
| 38 | * |
||
| 39 | * @var array |
||
| 40 | */ |
||
| 41 | public $options = []; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get a menu option |
||
| 45 | * |
||
| 46 | * @param $name The name of the menu option |
||
| 47 | * |
||
| 48 | * @return string|bool Return the menu option if it exists or false. |
||
| 49 | */ |
||
| 50 | 2 | public function getOption($name) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Check if the current object is a drop down |
||
| 61 | * |
||
| 62 | * @return bool |
||
| 63 | */ |
||
| 64 | 3 | public function isDropDown() |
|
| 68 | } |