blob: 6d7407feb8079661fc3dd0ac88ffeb2f89639ede (
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
29
30
|
<?php
namespace Lightscale\LaralightSvg;
class SvgCollection
{
private array $paths = [];
public function __construct(
private string $name
)
{}
public function addPath(string $path)
{
$this->paths[] = $path;
}
public function getName(): string
{
return $this->name;
}
public function getSvgUrl(string $svg): string
{
return route('laralight-svg.serve-svg', $this->getName());
}
}
|