AuthenticationException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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
}