RouteWasHit   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Spatie\MissingPageRedirector\Events;
4
5
class RouteWasHit
6
{
7
    /** @var string */
8
    public $route;
9
10
    /** @var string */
11
    public $missingUrl;
12
13
    /** @var int|null */
14
    public $statusCode;
15
16
    public function __construct(string $route, string $missingUrl, int $statusCode = null)
17
    {
18
        $this->route = $route;
19
20
        $this->missingUrl = $missingUrl;
21
22
        $this->statusCode = $statusCode;
23
    }
24
}
25