Render   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 6
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Hyde\Support\Facades;
6
7
use Hyde\Pages\Concerns\HydePage;
8
use Hyde\Support\Models\RenderData;
9
use Hyde\Support\Models\Route;
10
use Illuminate\Support\Facades\Facade;
11
12
/**
13
 * Manages data for the current page being rendered/compiled.
14
 *
15
 * @see \Hyde\Support\Models\RenderData
16
 *
17
 * @method static void setPage(HydePage $page)
18
 * @method static HydePage|null getPage()
19
 * @method static Route|null getRoute()
20
 * @method static string|null getRouteKey()
21
 * @method static void share(string $key, mixed $value)
22
 * @method static void shareToView()
23
 * @method static void clearData()
24
 */
25
class Render extends Facade
26
{
27
    /** @return class-string */
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string.
Loading history...
28
    protected static function getFacadeAccessor(): string
29
    {
30
        return RenderData::class;
31
    }
32
}
33