mirror of
https://github.com/koel/koel
synced 2024-12-19 17:13:09 +00:00
27 lines
511 B
PHP
27 lines
511 B
PHP
<?php
|
|
|
|
namespace App\Values\SongStorageMetadata;
|
|
|
|
use App\Facades\License;
|
|
|
|
class S3CompatibleMetadata implements 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;
|
|
}
|
|
|
|
public function supported(): bool
|
|
{
|
|
return License::isPlus();
|
|
}
|
|
}
|