RouteRedirected   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 25
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanedev\MissingUrlsRedirector\Events;
6
7
use Arcanedev\MissingUrlsRedirector\Entities\Redirection;
8
9
/**
10
 * Class     RouteRedirected
11
 *
12
 * @package  Arcanedev\MissingUrlsRedirector\Events
13
 * @author   ARCANEDEV <[email protected]>
14
 */
15
class RouteRedirected
16
{
17
    /* -----------------------------------------------------------------
18
     |  Properties
19
     | -----------------------------------------------------------------
20
     */
21
22
    /** @var  \Arcanedev\MissingUrlsRedirector\Entities\Redirection */
23
    public $redirection;
24
25
    /* -----------------------------------------------------------------
26
     |  Constructor
27
     | -----------------------------------------------------------------
28
     */
29
30
    /**
31
     * RouteRedirected constructor.
32
     *
33
     * @param  \Arcanedev\MissingUrlsRedirector\Entities\Redirection  $redirection
34
     */
35 60
    public function __construct(Redirection $redirection)
36
    {
37 60
        $this->redirection = $redirection;
38 60
    }
39
}
40