AutenticacaoException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getErro() 0 2 1
A __construct() 0 2 1
A getTitulo() 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 AutenticacaoException
13
 *
14
 * @author Antonio
15
 */
16
class AutenticacaoException extends \Exception {
17
18
    /**
19
     *
20
     * @var RespostaException 
21
     */
22
    private $respostaException;
23
24
    public function __construct(RespostaException $ex) {
25
        $this->respostaException = $ex;
26
    }
27
28
    public function getTitulo() {
29
        $this->respostaException->getError()->OAuth2->error;
30
    }
31
32
    public function getErro() {
33
        $this->respostaException->getError()->OAuth2->error_description;
34
    }
35
36
}
37