summaryrefslogtreecommitdiff
path: root/src/Enums
diff options
context:
space:
mode:
authorSam Light <sam@lightscale.co.uk>2026-06-10 19:00:31 +0100
committerSam Light <sam@lightscale.co.uk>2026-06-10 19:00:31 +0100
commit26e20ef1a14f0734f6082dfb20a05fbcd6809165 (patch)
tree055c1722dcf9fe92d0ce5174d3caec6a1b4b6002 /src/Enums
parent32511fddf6fae7d1d9c194e15e0286274bc91ca6 (diff)
created some basic structure classes
Diffstat (limited to 'src/Enums')
-rw-r--r--src/Enums/HttpMethod.php15
-rw-r--r--src/Enums/SpecialSegment.php10
2 files changed, 25 insertions, 0 deletions
diff --git a/src/Enums/HttpMethod.php b/src/Enums/HttpMethod.php
new file mode 100644
index 0000000..9b561a8
--- /dev/null
+++ b/src/Enums/HttpMethod.php
@@ -0,0 +1,15 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Lightscale\Router\Enums;
+
+enum HttpMethod: string
+{
+ case Any = 'any';
+ case Get = 'get';
+ case Post = 'post';
+ case Put = 'put';
+ case Patch = 'patch';
+ case Delete = 'delete';
+}
diff --git a/src/Enums/SpecialSegment.php b/src/Enums/SpecialSegment.php
new file mode 100644
index 0000000..6b451c5
--- /dev/null
+++ b/src/Enums/SpecialSegment.php
@@ -0,0 +1,10 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Lightscale\Router\Enums;
+
+enum SpecialSegment: string
+{
+ case Root = '<root>';
+}