public function setSupportedLocales(array $supportedLocales)
    {
        if ( ! is_array($supportedLocales) || empty($supportedLocales))
            throw new UndefinedSupportedLocalesException;

        $this->supportedLocales = $this->filterLocales($supportedLocales);

        return $this;
    }
public function setSupportedLocales(array $supportedLocales)
    {
        if ( ! is_array($supportedLocales) || empty($supportedLocales))
            throw new UndefinedSupportedLocalesException;

        $this->supportedLocales = $this->filterLocales($supportedLocales);

        return $this;
    }
public function setSupportedLocales ( array $ supportedLocales ) { if ( ! is_array ( $ supportedLocales ) || empty ( $ supportedLocales ) ) throw new UndefinedSupportedLocalesException ; $ this -> supportedLocales = $ this -> filterLocales ( $ supportedLocales ) ; return $ this ; }
Set supported locales.

@param  array  $supportedLocales

@return self

@throws \Arcanedev\Localization\Exceptions\UndefinedSupportedLocalesException
Set supported locales .