AutorizationException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
namespace OBRSDK\Exceptions;
10
11
/**
12
 * Description of AutorizationException
13
 *
14
 * @author Antonio
15
 */
16
class AutorizationException extends \Exception {
17
18
    private $error;
19
    private $description;
20
21
    public function __construct($error, $description) {
22
        parent::__construct($description);
23
        $this->error = $error;
24
        $this->description = $description;
25
    }
26
27
    public function getErro() {
28
        return $this->error;
29
    }
30
31
    public function getDescricao() {
32
        return $this->description;
33
    }
34
35
}
36