diff --git a/src/Config/Config.php b/src/Config/Config.php index b49a63c..73766a8 100644 --- a/src/Config/Config.php +++ b/src/Config/Config.php @@ -160,7 +160,7 @@ class Config implements ArrayAccess, IteratorAggregate /** * Creates an iterator for the configuration options. * - * @return Traversable Array iterator over configuration + * @return \Traversable Array iterator over configuration */ public function getIterator(): \Traversable { diff --git a/src/Exception/MissingConfigurationException.php b/src/Exception/MissingConfigurationException.php index 6ff82f8..6ccdeba 100644 --- a/src/Exception/MissingConfigurationException.php +++ b/src/Exception/MissingConfigurationException.php @@ -4,8 +4,6 @@ namespace Atlas\Exception; /** * Exception thrown when a required configuration value is missing. - * - * @extends \RuntimeException */ class MissingConfigurationException extends \RuntimeException { diff --git a/src/Exception/RouteNotFoundException.php b/src/Exception/RouteNotFoundException.php index b128dcb..066dcae 100644 --- a/src/Exception/RouteNotFoundException.php +++ b/src/Exception/RouteNotFoundException.php @@ -7,8 +7,6 @@ namespace Atlas\Exception; * * This may occur during matching if no route corresponds to the request, * or during URL generation if the requested route name is not registered. - * - * @extends \RuntimeException */ class RouteNotFoundException extends \RuntimeException { diff --git a/src/Exception/RouteValidationException.php b/src/Exception/RouteValidationException.php index 49ac8bd..cfb9b6e 100644 --- a/src/Exception/RouteValidationException.php +++ b/src/Exception/RouteValidationException.php @@ -4,8 +4,6 @@ namespace Atlas\Exception; /** * Exception thrown when route parameter validation fails. - * - * @extends \RuntimeException */ class RouteValidationException extends \RuntimeException { diff --git a/src/Router/RouteGroup.php b/src/Router/RouteGroup.php index b289e35..102cbd2 100644 --- a/src/Router/RouteGroup.php +++ b/src/Router/RouteGroup.php @@ -4,8 +4,6 @@ namespace Atlas\Router; /** * Manages groupings of routes for prefix and middleware organization. - * - * @implements \IteratorAggregate */ class RouteGroup { @@ -256,9 +254,11 @@ class RouteGroup } /** - * Gets all group options. + * Registers a module within the group. * - * @return array Group options configuration + * @param string|array $identifier The module identifier or array of identifiers + * @param string|null $prefix Optional URI prefix + * @return self */ public function module(string|array $identifier, string|null $prefix = null): self { @@ -285,7 +285,7 @@ class RouteGroup /** * @internal */ - public function getConfig(): Config + public function getConfig(): \Atlas\Config\Config { return $this->router->getConfig(); }