From 26e20ef1a14f0734f6082dfb20a05fbcd6809165 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 10 Jun 2026 19:00:31 +0100 Subject: created some basic structure classes --- src/PathSegment.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/PathSegment.php (limited to 'src/PathSegment.php') diff --git a/src/PathSegment.php b/src/PathSegment.php new file mode 100644 index 0000000..e57667b --- /dev/null +++ b/src/PathSegment.php @@ -0,0 +1,28 @@ + */ + protected array $segments; + + public function __construct( + SpecialSegment|string $content, + ) { + if ($content instanceof SpecialSegment) { + $this->content = $content->value; + $this->specialSegment = $content; + } else { + $this->content = $content; + } + } +} -- cgit v1.2.3