From 6ad39e3ba64e518bcdba1fc32b6247375be39a8a Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 10 Jun 2026 19:00:32 +0100 Subject: shared code in traits for common features for groups --- src/Group.php | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/Group.php (limited to 'src/Group.php') diff --git a/src/Group.php b/src/Group.php new file mode 100644 index 0000000..4e6c71e --- /dev/null +++ b/src/Group.php @@ -0,0 +1,65 @@ +router; + } + + public function getParent(): ?static + { + return $this->parent; + } + + public function prefix(string $value): static + { + $this->prefix = $value; + + return $this; + } + + public function getPrefix(): ?string + { + return $this->prefix; + } + + public function getPath(): string + { + + } + + public function name(string $value): static + { + $this->name = $value; + + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + /** @param callable(self): void $cb */ + public function group(callable $cb): void + { + ($cb)(new GroupDefinition( + $this + )); + } +} -- cgit v1.2.3