| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 10 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | class ViteVariable implements ViteVariableInterface |
||
| 26 | { |
||
| 27 | use ViteVariableTrait; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Returns the Critical CSS file for $template wrapped in <style></style> |
||
| 31 | * tags |
||
| 32 | * |
||
| 33 | * @param null|string $name |
||
| 34 | * @param array $attributes additional HTML key/value pair attributes to add to the resulting tag |
||
| 35 | * |
||
| 36 | * @return Markup |
||
| 37 | * @throws LoaderError |
||
| 38 | */ |
||
| 39 | public function includeCriticalCssTags(?string $name = null, array $attributes = []): Markup |
||
| 43 | ); |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Returns the passed in CSS file at the specified file system path or URL, wrapped in |
||
| 48 | * <style></style> tags |
||
| 49 | * |
||
| 50 | * @param string $path |
||
| 51 | * @param array $attributes additional HTML key/value pair attributes to add to the resulting tag |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getCssInlineTags(string $path, array $attributes = []): string |
||
| 59 | ); |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Return the hash value for the first CSS file bundled with the module specified via $path |
||
| 64 | * |
||
| 65 | * @param $path |
||
| 66 | * @return Markup |
||
| 67 | */ |
||
| 68 | public function getCssHash($path): Markup |
||
| 75 |