Completed
Push — master ( fb21bc...46b7df )
by Emily
02:00
created

IllegalPropertyTypeException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 18 1
1
<?php
2
3
namespace Spaark\CompositeUtils\Exception;
4
5
use \Exception;
6
7
class IllegalPropertyTypeException extends Exception
8
{
9 1
    public function __construct
10
    (
11
        string $class,
12
        string $property,
13
        string $expected,
14
        string $got,
15
        Exception $previous = null
16
    )
17
    {
18 1
        parent::__construct
19
        (
20
              'Tried to set an illegal property type for '
21 1
            . $class .'::$' . $property . '. Excpected ' . $expected
22 1
            . ', got ' . $got,
23 1
            0,
24
            $previous
25
        );
26 1
    }
27
}
28