Translation::setObjectClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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