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
Asset
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\Facades;
6
7use Hyde\Framework\Services\AssetService;
8use Illuminate\Support\Facades\Facade;
9
10/**
11 * Handles the retrieval of core asset files, either from the HydeFront CDN or from the local media folder.
12 *
13 * @see \Hyde\Framework\Services\AssetService
14 *
15 * @method static string version()
16 * @method static string cdnLink(string $file)
17 * @method static string mediaLink(string $file)
18 * @method static bool hasMediaFile(string $file)
19 * @method static string injectTailwindConfig()
20 */
21class Asset extends Facade
22{
23    /** @psalm-return AssetService::class */
24    protected static function getFacadeAccessor(): string
25    {
26        return AssetService::class;
27    }
28}