Passed
Push — master ( 70ce04...9471d7 )
by Jean-Christophe
03:03
created

UbiquityException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 2
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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