public function setSupportedLanguages(array $languages)
    {
        $this->languages = $languages;
        $this->fallbackLanguage = reset($languages);

        return $this;
    }
public function setSupportedLanguages(array $languages)
    {
        $this->languages = $languages;
        $this->fallbackLanguage = reset($languages);

        return $this;
    }
public function setSupportedLanguages ( array $ languages ) { $ this -> languages = $ languages ; $ this -> fallbackLanguage = reset ( $ languages ) ; return $ this ; }
Set the supported languages

@param array $languages

@return self

@throws RuntimeException if the variable isn't an array
Set the supported languages