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