Menu   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 4 1
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