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

SDKException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
/**
3
 * ©[2016] SugarCRM Inc.  Licensed by SugarCRM under the Apache 2.0 license.
4
 */
5
6
namespace SugarAPI\SDK\Exception;
7
8
class SDKException extends \Exception {
9
10
    protected $default_message = 'Unknown SDK Exception occurred.';
11
12 1
    public function __construct($message = '') {
13 1
        if (empty($message)){
14 1
            $message = $this->default_message;
15 1
        }
16 1
        parent::__construct($message);
17 1
    }
18
19
}