Passed
Pull Request — master (#42)
by Raed
10:11
created

CallbackRegistrar   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace LaraCrafts\GeoRoutes\Support\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
7
/**
8
 * @method static void addCallback(string $name, callable $callback)
9
 * @method static void loadCallbacks(array $callbacks)
10
 * @method static array|null callbacks(array $callbacks = null)
11
 * @method static void parseCallbacks(string $class)
12
 * @method static mixed callback(string $name, callable $callable = null)
13
 * @method static boolean hasCallback(string $name)
14
 * @method static boolean hasProxy(string $proxy)
15
 * @method static void setDefault(string|callable $callback, ...$arguments)
16
 * @method static array getDefault()
17
 * @method static mixed invokeDefault()
18
 *
19
 * @see \LaraCrafts\GeoRoutes\CallbackRegistrar
20
 */
21
class CallbackRegistrar extends Facade
22
{
23
    /**
24
     * Get the registered name of the component.
25
     *
26
     * @return string
27
     */
28 96
    protected static function getFacadeAccessor()
29
    {
30 96
        return 'georoutes.callbacks';
31
    }
32
}
33