Netson\L4gettext\L4gettext::hasLocale PHP Method

hasLocale() public method

method to check if a locale has been set
public hasLocale ( ) : boolean
return boolean
    public function hasLocale()
    {
        // check if locale has been set
        if (isset($this->locale) && !is_null($this->locale)) {
            return true;
        } else {
            return false;
        }
    }