RedirectException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRedirectUrl() 0 4 1
A __construct() 0 6 1
1
<?php
2
3
namespace App\Exceptions;
4
5
use Exception;
6
7
class RedirectException extends Exception
8
{
9
    protected $redirectUrl;
10
11
    public function __construct($redirectUrl = '')
12
    {
13
        parent::__construct();
14
15
        $this->redirectUrl = $redirectUrl;
16
    }
17
18
    public function getRedirectUrl()
19
    {
20
        return $this->redirectUrl;
21
    }
22
}