koel/app/Values/SongStorageMetadata/LocalMetadata.php

25 lines
425 B
PHP

<?php
namespace App\Values\SongStorageMetadata;
final class LocalMetadata implements SongStorageMetadata
{
private function __construct(public string $path)
{
}
public static function make(string $path): self
{
return new self($path);
}
public function getPath(): string
{
return $this->path;
}
public function supported(): bool
{
return true;
}
}