koel/app/Values/SongStorageMetadata/S3CompatibleMetadata.php
2024-07-06 17:44:46 +02:00

22 lines
467 B
PHP

<?php
namespace App\Values\SongStorageMetadata;
use App\Values\SongStorageMetadata\Contracts\SongStorageMetadata;
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;
}
}