1 | <?php |
||
10 | class TranslationGroup |
||
11 | { |
||
12 | /** |
||
13 | * Translation ID |
||
14 | */ |
||
15 | private $id; |
||
16 | |||
17 | /** |
||
18 | * All translations for a specific key (Kunstmaan\TranslatorBundle\Model\Translation\Translation) |
||
19 | * |
||
20 | * @var Doctrine\Common\Collections\ArrayCollection |
||
21 | **/ |
||
22 | private $translations; |
||
23 | |||
24 | /** |
||
25 | * Translation identifier |
||
26 | * |
||
27 | * @var string |
||
28 | **/ |
||
29 | private $keyword; |
||
30 | |||
31 | /** |
||
32 | * The domain name of this group |
||
33 | * |
||
34 | * @var string |
||
35 | **/ |
||
36 | private $domain; |
||
37 | |||
38 | 3 | public function __construct() |
|
42 | |||
43 | 3 | public function hasTranslation($locale) |
|
55 | |||
56 | 3 | public function getTranslationByLocale($locale) |
|
70 | |||
71 | public function getTranslationTextByLocale($locale) |
||
77 | |||
78 | public function addTranslation(Translation $translation) |
||
83 | |||
84 | public function getTranslations() |
||
88 | |||
89 | 3 | public function setTranslations($translations) |
|
96 | |||
97 | /** |
||
98 | * @param mixed $id |
||
99 | */ |
||
100 | 3 | public function setId($id) |
|
104 | |||
105 | /** |
||
106 | * @return mixed |
||
107 | */ |
||
108 | 3 | public function getId() |
|
112 | |||
113 | 3 | public function getKeyword() |
|
117 | |||
118 | 3 | public function setKeyword($keyword) |
|
122 | |||
123 | 3 | public function getDomain() |
|
127 | |||
128 | 3 | public function setDomain($domain) |
|
132 | } |
||
133 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..