Skip to content

Commit

Permalink
Add Phpdoc to Menu facade
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilrt committed Dec 7, 2019
1 parent 063fa90 commit 58349d2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Facades/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,23 @@

namespace Nwidart\Menus\Facades;

use Closure;
use Illuminate\Support\Facades\Facade;
use Nwidart\Menus\MenuBuilder;

/**
* @method static MenuBuilder make($name, Closure $callback) Make new menu.
* @method static MenuBuilder create($name, Closure $resolver) Create new menu.
* @method static bool has(string $name) check if the menu exists.
* @method static string|null instance(string $name) Get instance of the given meu if exists.
* @method static void modify(string $name, Closure $callback) Modify a specific menu.
* @method static string|null get(string $name, string $presenter = null, array $bindings = []) Render the menu tag by given name.
* @method static string|null render(string $name, string $presenter = null, array $bindings = []) Render the menu tag by given name.
* @method static mixed style() Get a stylesheet for enable multilevel menu.
* @method static array all() Get all Menus.
* @method static int count() Get Count from all menus.
* @method static void destroy() Empty the current menus.
*/
class Menu extends Facade
{
/**
Expand Down

0 comments on commit 58349d2

Please sign in to comment.