Passed
Push — master ( d8182e...614f25 )
by Paweł
03:01
created

EntityViolation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 19
rs 10
ccs 8
cts 8
cp 1
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessage() 0 3 1
A getProperty() 0 3 1
A __construct() 0 4 1
1
<?php
2
/**
3
 * Copyright (c) 2020.
4
 * @author Paweł Antosiak <[email protected]>
5
 */
6
7
declare(strict_types=1);
8
9
namespace Gorynych\Resource\Dto;
10
11
final class EntityViolation
12
{
13
    private string $property;
14
    private string $message;
15
16 1
    public function __construct(string $property, string $message)
17
    {
18 1
        $this->property = $property;
19 1
        $this->message = $message;
20 1
    }
21
22 1
    public function getProperty(): string
23
    {
24 1
        return $this->property;
25
    }
26
27 1
    public function getMessage(): string
28
    {
29 1
        return $this->message;
30
    }
31
}
32