for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Uxmp\Core\Api;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Uxmp\Core\Api\Lib\Message\JsonEnabledResponseInterface;
abstract class AbstractApiApplication
{
/**
* @param array<string, scalar> $args
*/
abstract protected function run(
ServerRequestInterface $request,
JsonEnabledResponseInterface $response,
array $args
): ResponseInterface;
public function __invoke(
): ResponseInterface {
return $this->run($request, $response, $args);
}