AutenticacaoException::getErro()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
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 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