Hyde   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFacadeRoot() 0 3 1
A version() 0 3 1
A kernel() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Hyde;
6
7
use Hyde\Foundation\HydeKernel;
8
use Illuminate\Support\Facades\Facade;
9
use JetBrains\PhpStorm\Pure;
10
11
/**
12
 * General facade for Hyde services.
13
 *
14
 * @see \Hyde\Foundation\HydeKernel
15
 *
16
 * @author  Emma De Silva <[email protected]>
17
 * @copyright 2022 Emma De Silva
18
 * @license MIT License
19
 *
20
 * @mixin \Hyde\Foundation\HydeKernel
21
 *
22
 * @see \Hyde\Foundation\Concerns\ForwardsFilesystem
23
 * @see \Hyde\Foundation\Concerns\ForwardsHyperlinks
24
 */
25
class Hyde extends Facade
26
{
27
    public static function version(): string
28
    {
29
        return HydeKernel::version();
30
    }
31
32
    public static function getFacadeRoot(): HydeKernel
33
    {
34
        return HydeKernel::getInstance();
35
    }
36
37
    #[Pure]
38
    public static function kernel(): HydeKernel
39
    {
40
        return HydeKernel::getInstance();
41
    }
42
}
43