Completed
Pull Request — master (#8)
by Tobias
15:27 queued 07:58
created

GuiMessageRepresentation::getKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Translation\Bundle\Model;
4
5
use Symfony\Component\Validator\Constraints as Assert;
6
7
/**
8
 * @author Tobias Nyholm <[email protected]>
9
 */
10
class GuiMessageRepresentation
11
{
12
    /**
13
     * @var string
14
     * @Assert\NotBlank(groups={"Create", "Edit", "Delete"})
15
     */
16
    private $key;
17
18
    /**
19
     * @var string
20
     * @Assert\NotBlank(groups={"Create", "Edit"})
21
     */
22
    private $message;
23
24
    /**
25
     * @return string
26
     */
27
    public function getKey()
28
    {
29
        return $this->key;
30
    }
31
32
    /**
33
     * @param string $key
34
     *
35
     * @return GuiMessageRepresentation
36
     */
37
    public function setKey($key)
38
    {
39
        $this->key = $key;
40
41
        return $this;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getMessage()
48
    {
49
        return $this->message;
50
    }
51
52
    /**
53
     * @param string $message
54
     *
55
     * @return GuiMessageRepresentation
56
     */
57
    public function setMessage($message)
58
    {
59
        $this->message = $message;
60
61
        return $this;
62
    }
63
}
64