Passed
Push — master ( 945dc8...ec757f )
by Mike
02:50
created

AuthenticationException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * ©[2016] SugarCRM Inc.  Licensed by SugarCRM under the Apache 2.0 license.
4
 */
5
6
namespace SugarAPI\SDK\Exception\Authentication;
7
8
use SugarAPI\SDK\Exception\SDKException;
9
10
class AuthenticationException extends SDKException {
11
12
    protected $message = 'Authentication Exception [%s] occurred in SDK Client. Message: %s';
13
14 1
    public function __construct($message){
15 1
        parent::__construct(sprintf($this->message, get_called_class(), $message));
16 1
    }
17
18
}