mirror of
https://github.com/koel/koel
synced 2024-12-24 19:43:06 +00:00
20 lines
397 B
PHP
20 lines
397 B
PHP
<?php
|
|
|
|
namespace App\Values\SongStorageMetadata;
|
|
|
|
class S3CompatibleMetadata extends SongStorageMetadata
|
|
{
|
|
private function __construct(public string $bucket, public string $key)
|
|
{
|
|
}
|
|
|
|
public static function make(string $bucket, string $key): self
|
|
{
|
|
return new static($bucket, $key);
|
|
}
|
|
|
|
public function getPath(): string
|
|
{
|
|
return $this->key;
|
|
}
|
|
}
|