InvalidArgumentException::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 5
cp 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 3
crap 6
1
<?php
2
3
namespace SimpleORM;
4
5
/**
6
 * Description of InvalidArgumentException
7
 *
8
 * @author Dmitriy
9
 */
10
class InvalidArgumentException extends \Exception
11
{
12
	public function __construct($message, $code = null , $previous = null) {
13
		
14
		if(is_array($message))
15
			$message = implode('',$message);
16
		
17
		parent::__construct($message, $code, $previous);
18
	}
19
}
20