NotAllowedProperty::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 4
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: brucepc
5
 * Date: 24/02/18
6
 * Time: 11:49
7
 */
8
9
namespace BPCI\SumUp\Exception;
10
11
12
use Throwable;
13
14
class NotAllowedProperty extends \RuntimeException
15
{
16
	public function __construct($object, $property, Throwable $previous = null)
17
	{
18
		$message = sprintf('Not allowed property %s into %s class!', $property,get_class($object));
19
		parent::__construct($message, 100, $previous);
20
	}
21
}
22