NotAllowedProperty   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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