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

AuthenticationException   A

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
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