Completed
Push — master ( 5d392f...088273 )
by
unknown
05:37
created

UnauthorizedException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
/**
4
 * Description of UnauthorizedException
5
 *
6
 * @author matias
7
 */
8
9
namespace Columnis\Exception\Api;
10
11
use Columnis\Exception\Exception;
12
13
class UnauthorizedException extends \Exception implements Exception
14
{
15
    /**
16
     *
17
     * @var \Exception
18
     */
19
    private $previous;
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
20
    
21
    /**
22
     * 
23
     * @param string $message
24
     * @param string|long $code
25
     * @param \Exception $previous
26
     */
27
    public function __construct ($message, $code, \Exception $previous)
28
    {
29
        $this->message = $message;
30
        $this->code = $code;
31
        $this->previous = $previous;
32
    }
33
34
}
35