Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
CRAP
100.00% covered (success)
100.00%
1 / 1
Hyde
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
3
100.00% covered (success)
100.00%
1 / 1
 version
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getFacadeRoot
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 kernel
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Hyde;
6
7use Hyde\Foundation\HydeKernel;
8use Illuminate\Support\Facades\Facade;
9use JetBrains\PhpStorm\Pure;
10
11/**
12 * General facade for Hyde services.
13 *
14 * @see \Hyde\Foundation\HydeKernel
15 *
16 * @author  Caen De Silva <caen@desilva.se>
17 * @copyright 2022 Caen 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 */
25class 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}