diff options
Diffstat (limited to 'src/SvgCollection.php')
-rw-r--r-- | src/SvgCollection.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/SvgCollection.php b/src/SvgCollection.php new file mode 100644 index 0000000..6d7407f --- /dev/null +++ b/src/SvgCollection.php @@ -0,0 +1,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()); + } + +} |