1
<?php declare(strict_types=1);
3
namespace Upside\Router;
5
interface RouteCollectorInterface
8
* @param class-string $controller
10
public function get(string $path, string $controller, string $action, string $name): void;
13
* @param class-string $controller
15
public function post(string $path, string $controller, string $action, string $name): void;
18
* @param class-string $controller
20
public function put(string $path, string $controller, string $action, string $name): void;
23
* @param class-string $controller
25
public function delete(string $path, string $controller, string $action, string $name): void;
28
* @param class-string $controller
30
public function patch(string $path, string $controller, string $action, string $name): void;
32
* @param class-string $controller
34
public function head(string $path, string $controller, string $action, string $name): void;
37
* @param class-string $controller
39
public function options(string $path, string $controller, string $action, string $name): void;
41
public function route(Route $route): self;
46
public function routes(): array;