Skip to content

Commit e1610e1

Browse files
authored
Merge pull request #52 from soheilrt/master
Add Phpdoc to Menu facade
2 parents 063fa90 + 58349d2 commit e1610e1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Facades/Menu.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,23 @@
22

33
namespace Nwidart\Menus\Facades;
44

5+
use Closure;
56
use Illuminate\Support\Facades\Facade;
7+
use Nwidart\Menus\MenuBuilder;
68

9+
/**
10+
* @method static MenuBuilder make($name, Closure $callback) Make new menu.
11+
* @method static MenuBuilder create($name, Closure $resolver) Create new menu.
12+
* @method static bool has(string $name) check if the menu exists.
13+
* @method static string|null instance(string $name) Get instance of the given meu if exists.
14+
* @method static void modify(string $name, Closure $callback) Modify a specific menu.
15+
* @method static string|null get(string $name, string $presenter = null, array $bindings = []) Render the menu tag by given name.
16+
* @method static string|null render(string $name, string $presenter = null, array $bindings = []) Render the menu tag by given name.
17+
* @method static mixed style() Get a stylesheet for enable multilevel menu.
18+
* @method static array all() Get all Menus.
19+
* @method static int count() Get Count from all menus.
20+
* @method static void destroy() Empty the current menus.
21+
*/
722
class Menu extends Facade
823
{
924
/**

0 commit comments

Comments
 (0)