diff options
Diffstat (limited to 'src/StyleFile.php')
| -rw-r--r-- | src/StyleFile.php | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/src/StyleFile.php b/src/StyleFile.php new file mode 100644 index 0000000..ea3e425 --- /dev/null +++ b/src/StyleFile.php @@ -0,0 +1,17 @@ +<?php + +namespace Lightscale\LaralightAssets; + +class StyleFile extends File +{ +    public function __construct(string $path) +    { +        $this->setPath($path); +    } + +    public function toHtml(): string +    { +        $path = $this->getPath(); +        return "<link type=\"text/css\" rel=\"stylesheet\" href=\"{$path}\" />"; +    } +} | 
