Violation::getMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Paysera\Bundle\ApiBundle\Entity;
5
6
class Violation
7
{
8
    /**
9
     * @var string
10
     */
11
    private $field;
12
13
    /**
14
     * @var string
15
     */
16
    private $code;
17
18
    /**
19
     * @var string
20
     */
21
    private $message;
22
23
    /**
24
     * @return null|string
25
     */
26 12
    public function getField()
27
    {
28 12
        return $this->field;
29
    }
30
31
    /**
32
     * @param string $field
33
     *
34
     * @return $this
35
     */
36 19
    public function setField($field)
37
    {
38 19
        $this->field = $field;
39
40 19
        return $this;
41
    }
42
43
    /**
44
     * @return null|string
45
     */
46 12
    public function getCode()
47
    {
48 12
        return $this->code;
49
    }
50
51
    /**
52
     * @param string $code
53
     *
54
     * @return $this
55
     */
56 19
    public function setCode($code)
57
    {
58 19
        $this->code = $code;
59
60 19
        return $this;
61
    }
62
63
    /**
64
     * @return null|string
65
     */
66 12
    public function getMessage()
67
    {
68 12
        return $this->message;
69
    }
70
71
    /**
72
     * @param string $message
73
     *
74
     * @return $this
75
     */
76 19
    public function setMessage($message)
77
    {
78 19
        $this->message = $message;
79
80 19
        return $this;
81
    }
82
}
83