blob: 1a9ad03ead0cace811129f384a8c5a0ab3babf46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
declare(strict_types=1);
namespace Lightscale\Router;
use Closure;
use Lightscale\Router\Enums\HttpMethod;
class Route
{
protected Closure $handler;
public function __construct(
protected PathSegment $segment,
protected HttpMethod $method,
callable $handler,
) {
$this->handler = Closure::fromCallable($handler);
}
}
|