| @@ 153-166 (lines=14) @@ | ||
| 150 | * |
|
| 151 | * @return array |
|
| 152 | */ |
|
| 153 | public function getDatabaseArrayFromEntity(CountryEntity $entity) |
|
| 154 | { |
|
| 155 | return [ |
|
| 156 | 'short' => $entity->short, |
|
| 157 | 'name' => $entity->name, |
|
| 158 | 'de' => $entity->de, |
|
| 159 | 'en' => $entity->en, |
|
| 160 | 'trans_id' => $entity->translationId, |
|
| 161 | 'list_default_de' => $entity->listDefaultDe, |
|
| 162 | 'list_default_en' => $entity->listDefaultEn, |
|
| 163 | 'sort_de' => $entity->sortDe, |
|
| 164 | 'sort_en' => $entity->sortEn |
|
| 165 | ]; |
|
| 166 | } |
|
| 167 | ||
| 168 | /** |
|
| 169 | * Prepares database array from properties. |
|
| @@ 189-202 (lines=14) @@ | ||
| 186 | * |
|
| 187 | * @return array |
|
| 188 | */ |
|
| 189 | public function getDatabaseArrayFromEntity(LanguageEntity $entity) |
|
| 190 | { |
|
| 191 | return [ |
|
| 192 | 'short' => $entity->short, |
|
| 193 | 'name' => $entity->name, |
|
| 194 | 'native_name' => $entity->nativeName, |
|
| 195 | 'de' => $entity->de, |
|
| 196 | 'en' => $entity->en, |
|
| 197 | 'trans_id' => $entity->translationId, |
|
| 198 | 'list_default_de' => $entity->listDefaultDe, |
|
| 199 | 'list_default_en' => $entity->listDefaultEn, |
|
| 200 | 'is_translated' => $entity->isTranslated |
|
| 201 | ]; |
|
| 202 | } |
|
| 203 | ||
| 204 | /** |
|
| 205 | * Prepares database array from properties. |
|