Passed
Branch master (c65ffc)
by Dāvis
03:08
created

Translation   A

Complexity

Total Complexity 11

Size/Duplication

Total Lines 160
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 160
rs 10
c 0
b 0
f 0
wmc 11

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A setObjectClass() 0 5 1
A getLocale() 0 3 1
A setContent() 0 5 1
A getObjectClass() 0 3 1
A setLocale() 0 5 1
A setField() 0 5 1
A getContent() 0 3 1
A setForeignKey() 0 5 1
A getForeignKey() 0 3 1
A getField() 0 3 1
1
<?php
2
3
namespace Sludio\HelperBundle\Translatable\Entity;
4
5
/**
6
 * Translation.
7
 */
8
class Translation
9
{
10
    /**
11
     * @var int
12
     */
13
    private $id;
14
15
    /**
16
     * Get id.
17
     *
18
     * @return int
19
     */
20
    public function getId()
21
    {
22
        return $this->id;
23
    }
24
25
    /**
26
     * @var string
27
     */
28
    private $locale;
29
30
    /**
31
     * Set locale.
32
     *
33
     * @param string $locale
34
     *
35
     * @return Translation
36
     */
37
    public function setLocale($locale)
38
    {
39
        $this->locale = $locale;
40
41
        return $this;
42
    }
43
44
    /**
45
     * Get locale.
46
     *
47
     * @return string
48
     */
49
    public function getLocale()
50
    {
51
        return $this->locale;
52
    }
53
54
    /**
55
     * @var string
56
     */
57
    private $objectClass;
58
59
    /**
60
     * Set objectClass.
61
     *
62
     * @param string $objectClass
63
     *
64
     * @return Translation
65
     */
66
    public function setObjectClass($objectClass)
67
    {
68
        $this->objectClass = $objectClass;
69
70
        return $this;
71
    }
72
73
    /**
74
     * Get objectClass.
75
     *
76
     * @return string
77
     */
78
    public function getObjectClass()
79
    {
80
        return $this->objectClass;
81
    }
82
83
    /**
84
     * @var string
85
     */
86
    private $field;
87
88
    /**
89
     * Set field.
90
     *
91
     * @param string $field
92
     *
93
     * @return Translation
94
     */
95
    public function setField($field)
96
    {
97
        $this->field = $field;
98
99
        return $this;
100
    }
101
102
    /**
103
     * Get field.
104
     *
105
     * @return string
106
     */
107
    public function getField()
108
    {
109
        return $this->field;
110
    }
111
112
    /**
113
     * @var int
114
     */
115
    private $foreignKey;
116
117
    /**
118
     * @var string
119
     */
120
    private $content;
121
122
    /**
123
     * Set foreignKey.
124
     *
125
     * @param int $foreignKey
126
     *
127
     * @return Translation
128
     */
129
    public function setForeignKey($foreignKey)
130
    {
131
        $this->foreignKey = $foreignKey;
132
133
        return $this;
134
    }
135
136
    /**
137
     * Get foreignKey.
138
     *
139
     * @return int
140
     */
141
    public function getForeignKey()
142
    {
143
        return $this->foreignKey;
144
    }
145
146
    /**
147
     * Set content.
148
     *
149
     * @param string $content
150
     *
151
     * @return Translation
152
     */
153
    public function setContent($content)
154
    {
155
        $this->content = $content;
156
157
        return $this;
158
    }
159
160
    /**
161
     * Get content.
162
     *
163
     * @return string
164
     */
165
    public function getContent()
166
    {
167
        return $this->content;
168
    }
169
}
170