Passed
Push — master ( df86a8...81c655 )
by Jean-Christophe
10:05
created

UbiquityException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A __toString() 0 3 1
1
<?php
2
3
namespace Ubiquity\exceptions;
4
5
6
class UbiquityException extends \Exception{
7 2
	public function __construct($message=null,$code=null,$previous=null){
8 2
		parent::__construct($message, $code, $previous);
9 2
	}
10
11 1
	public function __toString(){
12 1
		return get_class($this) . " '{$this->message}' in {$this->file}({$this->line})\n"
13 1
		. "{$this->getTraceAsString()}";
14
	}
15
}
16