-
-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathGet.php
More file actions
24 lines (19 loc) · 591 Bytes
/
Get.php
File metadata and controls
24 lines (19 loc) · 591 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
declare(strict_types=1);
namespace Tempest\Router;
use Attribute;
use Tempest\Http\Method;
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_METHOD)]
final class Get implements Route
{
public Method $method = Method::GET;
/**
* @param class-string<HttpMiddleware>[] $middleware Middleware specific to this route.
* @param class-string<HttpMiddleware>[] $without Middleware to remove from this route.
*/
public function __construct(
public string $uri,
public array $middleware = [],
public array $without = [],
) {}
}