AutorizationException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescricao() 0 2 1
A __construct() 0 4 1
A getErro() 0 2 1
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