public function setPreferredMappings(array $mappings): void
    {
        foreach ($mappings as $language => $map) {
            $this->preferred[$language] = (array) $map;
        }
    }
public function setPreferredMappings(array $mappings): void
    {
        foreach ($mappings as $language => $map) {
            $this->preferred[$language] = (array) $map;
        }
    }
public function setPreferredMappings ( array $ mappings ) : void { foreach ( $ mappings as $ language => $ map ) { $ this -> preferred [ $ language ] = ( array ) $ map ; } }
Set preferred mappings

Examples:

```
$mapper->setPreferredMappings(['en' => ['en_US', 'en_GB']]);
```

@param array $mappings

@since 1.1
Set preferred mappings