45 lines
756 B
PHP
45 lines
756 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Entity;
|
|
|
|
final class Station
|
|
{
|
|
public function __construct(public int $id, private string $radioTempDirectory)
|
|
{
|
|
}
|
|
|
|
public function getRadioTempDir(): string
|
|
{
|
|
return $this->radioTempDirectory;
|
|
}
|
|
}
|
|
|
|
final class StationMedia
|
|
{
|
|
public function __construct(
|
|
public int $storage_location_id,
|
|
public string $unique_id,
|
|
public int $mtime,
|
|
public string $path,
|
|
) {
|
|
}
|
|
}
|
|
|
|
namespace App\Flysystem;
|
|
|
|
use App\Entity\Station;
|
|
|
|
final class StationFilesystems
|
|
{
|
|
public function __construct(private object $filesystem)
|
|
{
|
|
}
|
|
|
|
public function getMediaFilesystem(Station $station): object
|
|
{
|
|
return $this->filesystem;
|
|
}
|
|
}
|