Completed
Push — master ( 4d50ae...84674b )
by Tobias
06:42
created

WebUiMessage::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
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * This file is part of the PHP Translation package.
5
 *
6
 * (c) PHP Translation team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Translation\Bundle\Model;
13
14
use Symfony\Component\Validator\Constraints as Assert;
15
16
/**
17
 * @author Tobias Nyholm <[email protected]>
18
 */
19
class WebUiMessage
20
{
21
    /**
22
     * @var string
23
     * @Assert\NotBlank(groups={"Create", "Edit", "Delete"})
24
     */
25
    private $key;
26
27
    /**
28
     * @var string
29
     * @Assert\NotBlank(groups={"Create", "Edit"})
30
     */
31
    private $message;
32
33
    /**
34
     * @return string
35
     */
36
    public function getKey()
37
    {
38
        return $this->key;
39
    }
40
41
    /**
42
     * @param string $key
43
     *
44
     * @return WebUiMessage
45
     */
46
    public function setKey($key)
47
    {
48
        $this->key = $key;
49
50
        return $this;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getMessage()
57
    {
58
        return $this->message;
59
    }
60
61
    /**
62
     * @param string $message
63
     *
64
     * @return WebUiMessage
65
     */
66
    public function setMessage($message)
67
    {
68
        $this->message = $message;
69
70
        return $this;
71
    }
72
}
73