Completed
Push — master ( 83a9fe...bdaaf9 )
by Tobias
07:57
created

EditInPlaceMessage::getMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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 Damien Alexandre <[email protected]>
18
 */
19
class EditInPlaceMessage
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
     * @var string
35
     * @Assert\NotBlank(groups={"Create", "Edit", "Delete"})
36
     */
37
    private $domain;
38
39
    /**
40
     * @return string
41
     */
42
    public function getKey()
43
    {
44
        return $this->key;
45
    }
46
47
    /**
48
     * @param string $key
49
     *
50
     * @return EditInPlaceMessage
51
     */
52
    public function setKey($key)
53
    {
54
        $this->key = $key;
55
56
        return $this;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getMessage()
63
    {
64
        return $this->message;
65
    }
66
67
    /**
68
     * @param string $message
69
     *
70
     * @return EditInPlaceMessage
71
     */
72
    public function setMessage($message)
73
    {
74
        $this->message = $message;
75
76
        return $this;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getDomain()
83
    {
84
        return $this->domain;
85
    }
86
87
    /**
88
     * @param string $domain
89
     *
90
     * @return EditInPlaceMessage
91
     */
92
    public function setDomain($domain)
93
    {
94
        $this->domain = $domain;
95
96
        return $this;
97
    }
98
}
99