InvalidTypeException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Anfischer\Dto\Exceptions;
5
6
class InvalidTypeException extends DtoException
7
{
8
    /**
9
     * @param string $class
10
     * @param string $property
11
     * @param string $expected
12
     * @param string $given
13
     */
14
    public function __construct(string $class, string $property, string $expected, string $given)
15
    {
16
        parent::__construct("${class}::${property} must be of type '${expected}' (type '${given}' given)");
17
    }
18
}
19