for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Kambo\Router\Route;
/**
* Route interface - all routes must implement this interface.
*
* @package Kambo\Router\Route
* @author Bohuslav Simek <[email protected]>
* @license MIT
*/
interface Route
{
* Sets route method
* @param string $method route method
* @return self for fluent interface
public function setMethod(string $method) : Route;
* Get route method
* @return string
public function getMethod() : string;
* Sets URL for route
* @param mixed $url route url
public function setUrl(string $url) : Route;
* Get URL of route
public function getUrl() : string;
* Sets handler that will be executed if the url will match the route.
* @param mixed $handler handler which will be executed if the url will
* match the route
public function setHandler($handler);
* Get handler
* @return mixed
public function getHandler();
}