Menu::getFacadeAccessor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Nwidart\Menus\Facades;
4
5
use Closure;
6
use Illuminate\Support\Facades\Facade;
7
use Nwidart\Menus\MenuBuilder;
8
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
 */
22
class Menu extends Facade
23
{
24
    /**
25
     * Get the registered name of the component.
26
     *
27
     * @return string
28
     */
29
    protected static function getFacadeAccessor()
30
    {
31
        return 'menus';
32
    }
33
}
34