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

UbiquityException::__toString()   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 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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