Feature::getFacadeAccessor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace LaravelFeature\Facade;
4
5
use LaravelFeature\Domain\FeatureManager;
6
use Illuminate\Support\Facades\Facade;
7
8
/**
9
 * @method static void add($featureName, $isEnabled)
10
 * @method static void remove($featureName)
11
 * @method static void rename($featureOldName, $featureNewName)
12
 * @method static void enable($featureName)
13
 * @method static void disable($featureName)
14
 * @method static void isEnabled($featureName)
15
 * @method static bool enableFor($featureName, \LaravelFeature\Featurable\FeaturableInterface $featurable)
16
 * @method static void disableFor($featureName, \LaravelFeature\Featurable\FeaturableInterface $featurable)
17
 * @method static bool isEnabledFor($featureName, \LaravelFeature\Featurable\FeaturableInterface $featurable)
18
 */
19
class Feature extends Facade
20
{
21
    /**
22
     * Get the registered name of the component.
23
     *
24
     * @return string
25
     */
26
    protected static function getFacadeAccessor()
27
    {
28
        return FeatureManager::class;
29
    }
30
}
31