| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | #[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] |
||
| 12 | final class Route implements RouteAttributeInterface |
||
| 13 | { |
||
| 14 | private RouteObject $route; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param array<string,scalar|Stringable|null> $defaults Parameter default values indexed by parameter names. |
||
| 18 | * @param bool $override Marks route as override. When added it will replace existing route with the same name. |
||
| 19 | * @param array $disabledMiddlewares Excludes middleware from being invoked when action is handled. |
||
| 20 | * It is useful to avoid invoking one of the parent group middleware for |
||
| 21 | * a certain route. |
||
| 22 | */ |
||
| 23 | 2 | public function __construct( |
|
| 42 | 2 | ); |
|
| 43 | } |
||
| 44 | |||
| 45 | 2 | public function getRoute(): RouteObject |
|
| 50 |