1 | <?php |
||
12 | class Translation extends Entity |
||
13 | { |
||
14 | /** |
||
15 | * @orm\Column(name="`key`", type="text") |
||
16 | * @var String |
||
17 | */ |
||
18 | private $key; |
||
19 | |||
20 | /** |
||
21 | * @orm\Column(type="text") |
||
22 | * @var String |
||
23 | */ |
||
24 | private $translation; |
||
25 | |||
26 | /** |
||
27 | * @orm\ManyToOne(targetEntity="Language") |
||
28 | * @orm\JoinColumn(name="language_id", referencedColumnName="id", onDelete="CASCADE") |
||
29 | * @var Int |
||
30 | */ |
||
31 | private $language; |
||
32 | |||
33 | /** |
||
34 | * @orm\Column(type="boolean") |
||
35 | * @var Boolean |
||
36 | */ |
||
37 | private $backend; |
||
38 | |||
39 | /** |
||
40 | * TODO unique=true |
||
41 | * @orm\Column() |
||
42 | * @var |
||
43 | */ |
||
44 | private $hash; |
||
45 | |||
46 | /** |
||
47 | * @orm\Column(type="boolean") |
||
48 | * @var Boolean |
||
49 | */ |
||
50 | private $translated; |
||
51 | |||
52 | public function getHash() |
||
56 | |||
57 | 41 | public function setHash() |
|
61 | |||
62 | 41 | public function getKey() |
|
66 | |||
67 | 1 | public function getTranslation() |
|
71 | |||
72 | 41 | public function getLanguage() |
|
76 | |||
77 | 41 | public function getBackend() |
|
81 | |||
82 | 41 | public function setKey($key) |
|
86 | |||
87 | 41 | public function setTranslation($translation) |
|
92 | |||
93 | 41 | public function setLanguage($language) |
|
97 | |||
98 | 41 | public function setBackend($backend) |
|
102 | |||
103 | 41 | public function getTranslated() |
|
107 | } |
||
108 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.