Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Render
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getFacadeAccessor
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\Support\Facades;
6
7use Hyde\Pages\Concerns\HydePage;
8use Hyde\Support\Models\RenderData;
9use Hyde\Support\Models\Route;
10use 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 */
25class Render extends Facade
26{
27    /** @return class-string */
28    protected static function getFacadeAccessor(): string
29    {
30        return RenderData::class;
31    }
32}