Passed
Push — master ( 3e384a...ca4272 )
by Jean-Christophe
03:10
created

UbiquityException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

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

2 Methods

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