Completed
Pull Request — master (#10)
by
unknown
02:57
created

AuthenticationException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Akeneo\SalesForce\Exception;
4
5
class AuthenticationException extends \Exception
6
{
7
    /**
8
     * @var string
9
     */
10
    private $errorCode;
11
12
    /**
13
     * @param string $errorCode
14
     * @param string $message
15
     */
16
    public function __construct($errorCode, $message)
17
    {
18
        $this->errorCode = $errorCode;
19
20
        parent::__construct($message);
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getErrorCode()
27
    {
28
        return $this->errorCode;
29
    }
30
}
31