Route   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
namespace HnrAzevedo\Router;
4
5
use Attribute;
6
7
#[Attribute]
8
class Route
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,
16
        private ?string|?\Closure $before,
17
        private ?array $attributes,
18
        private ?array $middleware
19
    ) {}
20
}
21