Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Render | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
getFacadeAccessor | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
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 */ |
28 | protected static function getFacadeAccessor(): string |
29 | { |
30 | return RenderData::class; |
31 | } |
32 | } |