Passed
Push — master ( a2faa0...1bf41e )
by Aleksandr
01:58 queued 12s
created

Violation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getMessage() 0 3 1
A getField() 0 3 1
1
<?php
2
3
namespace Drobotik\Eav\Validation;
4
5
class Violation
6
{
7
    private string $message;
8
    private string $field;
9
    public function __construct($field, $message)
10
    {
11
        $this->field = $field;
12
        $this->message = $message;
13
    }
14
15
    public function getMessage(): string
16
    {
17
        return $this->message;
18
    }
19
20
    public function getField(): string
21
    {
22
        return $this->field;
23
    }
24
}