AuthenticationException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getErrorCode() 0 4 1
1
<?php namespace DarkGold\Salesforce\Exceptions;
2
3
class AuthenticationException extends \Exception {
4
5
    /**
6
     * @var string
7
     */
8
    private $errorCode;
9
10
    /**
11
     * @param string $errorCode
12
     * @param string $message
13
     */
14
    public function __construct($errorCode, $message)
15
    {
16
        $this->errorCode = $errorCode;
17
18
        parent::__construct($message);
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function getErrorCode()
25
    {
26
        return $this->errorCode;
27
    }
28
}