Passed
Branch master (817642)
by Henri
02:11
created

RouteAttribute   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 3
c 2
b 0
f 1
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace HnrAzevedo\Router;
4
5
use Attribute;
6
7
#[Attribute]
8
class RouteAttribute
9
{
10
    public function __construct(
11
        private string $uri,
12
        private array $methods,
13
        private string $name,
14
        private ?array $where,
15
        private ?string|Closure $after,
0 ignored issues
show
Bug introduced by
The type HnrAzevedo\Router\Closure was not found. Did you mean Closure? If so, make sure to prefix the type with \.
Loading history...
16
        private ?string|Closure $before,
17
        private ?array $attributes,
18
        private ?array $middleware
19
    ) {
20
        echo 1;
21
22
    }
23
}
24