for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LunixREST\Server;
use LunixREST\APIRequest\APIRequest;
use LunixREST\Endpoint\Exceptions\UnknownEndpointException;
use LunixREST\Server\Exceptions\MethodNotFoundException;
/**
* A router is what actually determines which class a method refers to, and which method on that class
* Interface Router
* @package LunixREST\Server
*/
interface Router
{
* @param APIRequest $request
* @return array|null|object
* @throws MethodNotFoundException
* @throws UnknownEndpointException
public function route(APIRequest $request);
}