<?php

namespace oss;

/** Test-only OSS switch for the private loopback upload server. */
final class OSSServer
{
    private static $instance;

    public static function getInstance(): self
    {
        if (self::$instance === null) self::$instance = new self();
        return self::$instance;
    }

    public function getConfig(): array
    {
        return ['ossDisjunctor' => 0, 'fileUrlPrefix' => '/'];
    }

    public function __call($name, $arguments)
    {
        throw new \RuntimeException('POC_UNEXPECTED_OSS_METHOD_' . $name);
    }
}
