public function addMap($locale, $map)
    {
        // Get sanitized locale
        $locale = Locale::sanitizeLocale($locale);

        $this->maps[$locale] = $map;

        return $this;
    }
public function addMap($locale, $map)
    {
        // Get sanitized locale
        $locale = Locale::sanitizeLocale($locale);

        $this->maps[$locale] = $map;

        return $this;
    }
public function addMap ( $ locale , $ map ) { // Get sanitized locale $ locale = Locale :: sanitizeLocale ( $ locale ) ; $ this -> maps [ $ locale ] = $ map ; return $ this ; }
Add map for a virtual locale.

@param string $locale
@param array  $map

@return $this
Add map for a virtual locale .