| 1 | <?php |
||
| 12 | class RouteHandler { |
||
| 13 | /** |
||
| 14 | * Actual handler |
||
| 15 | * |
||
| 16 | * @var Handler |
||
| 17 | */ |
||
| 18 | protected $handler = null; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructor |
||
| 22 | * |
||
| 23 | * @param string|\Closure $handler |
||
| 24 | */ |
||
| 25 | 1 | public function __construct( $handler ) { |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Get the handler |
||
| 31 | * |
||
| 32 | * @return Handler |
||
| 33 | */ |
||
| 34 | 1 | public function get() { |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Execute the handler |
||
| 40 | * |
||
| 41 | * @param mixed $arguments,... |
||
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | 4 | public function execute() { |
|
| 62 | } |
||
| 63 |