public function getMap($locale, $key = null)
    {
        // Get sanitized locale
        $locale = Locale::sanitizeLocale($locale);

        if ($key) {
            return isset($this->maps[$locale][$key]) ? $this->maps[$locale][$key] : null;
        }

        return isset($this->maps[$locale]) ? $this->maps[$locale] : null;
    }
public function getMap($locale, $key = null)
    {
        // Get sanitized locale
        $locale = Locale::sanitizeLocale($locale);

        if ($key) {
            return isset($this->maps[$locale][$key]) ? $this->maps[$locale][$key] : null;
        }

        return isset($this->maps[$locale]) ? $this->maps[$locale] : null;
    }
public function getMap ( $ locale , $ key = null ) { // Get sanitized locale $ locale = Locale :: sanitizeLocale ( $ locale ) ; if ( $ key ) { return isset ( $ this -> maps [ $ locale ] [ $ key ] ) ? $ this -> maps [ $ locale ] [ $ key ] : null ; } return isset ( $ this -> maps [ $ locale ] ) ? $ this -> maps [ $ locale ] : null ; }
Get map for specified name.

@param string|Locale $locale
@param string        $key

@return array|null
Get map for specified name .