RedirectException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 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
}