src/I18n/Gettext/Languages/Language.php
public static function getById($id)
    {
        $result = null;
        $info = CldrData::getLanguageInfo($id);
        if (isset($info)) {
            $result = new Language($info);
        }

        return $result;
    }
public static function getById($id)
    {
        $result = null;
        $info = CldrData::getLanguageInfo($id);
        if (isset($info)) {
            $result = new Language($info);
        }

        return $result;
    }
public static function getById ( $ id ) { $ result = null ; $ info = CldrData :: getLanguageInfo ( $ id ) ; if ( isset ( $ info ) ) { $ result = new Language ( $ info ) ; } return $ result ; }
Return a Language instance given the language id

@param string $id

@return Language|null
Return a Language instance given the language id