2024-02-05 11:50:06 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Values\SongStorageMetadata;
|
|
|
|
|
2024-02-23 18:36:02 +00:00
|
|
|
use App\Values\SongStorageMetadata\Contracts\SongStorageMetadata;
|
|
|
|
|
2024-02-05 11:50:06 +00:00
|
|
|
class DropboxMetadata implements SongStorageMetadata
|
|
|
|
{
|
2024-02-05 21:17:41 +00:00
|
|
|
private function __construct(public string $path)
|
2024-02-05 11:50:06 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-02-05 21:17:41 +00:00
|
|
|
public static function make(string $key): self
|
2024-02-05 11:50:06 +00:00
|
|
|
{
|
2024-02-05 21:17:41 +00:00
|
|
|
return new static($key);
|
2024-02-05 11:50:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getPath(): string
|
|
|
|
{
|
2024-02-05 21:17:41 +00:00
|
|
|
return $this->path;
|
2024-02-05 13:27:17 +00:00
|
|
|
}
|
2024-02-05 11:50:06 +00:00
|
|
|
}
|