blob: b2c52fc84c01b3c8fab4861d77aaf0323d95f623 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 | <?php
namespace Lightscale\LaralightAssets;
use Illuminate\Contracts\Support\Htmlable;
abstract class File implements Htmlable
{
    private string $path;
    protected function setPath(string $path): void
    {
        $this->path = $path;
    }
    public function getPath(): string
    {
        return $this->path;
    }
    public function hash(): string
    {
        $class = static::class;
        return md5("{$class}|{$this->path}");
    }
    abstract public function toHtml(): string
}
 |