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

EntityViolation::getMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
ccs 2
cts 2
cp 1
crap 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