InvalidPropertyTypeViolation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 14
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace Larapie\DataTransferObject\Violations;
4
5
use Symfony\Component\Validator\ConstraintViolation;
6
7
class InvalidPropertyTypeViolation extends ConstraintViolation
8
{
9
    /**
10
     * RequiredPropertyViolation constructor.
11
     */
12 8
    public function __construct(array $types)
13
    {
14 8
        parent::__construct(
15 8
            'invalid type should be '.implode('|', $types),
16 8
            'invalid type should be '.implode('|', $types),
17 8
            [],
18 8
            null,
19 8
            '',
20 8
            null
21
        );
22 8
    }
23
}
24