PropertyRequiredViolation   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 PropertyRequiredViolation extends ConstraintViolation
8
{
9
    /**
10
     * RequiredPropertyViolation constructor.
11
     */
12 42
    public function __construct()
13
    {
14 42
        parent::__construct(
15 42
            'is required',
16 42
            'is required',
17 42
            [],
18 42
            null,
19 42
            '',
20 42
            null
21
        );
22 42
    }
23
}
24