src/Supplemental/Language/Language.php
private function assertLanguageIsValid(string $language): void
    {
        if (!$this->codeIsValid($language)) {
            throw new InvalidLanguageCodeException(
                sprintf("Language code \"%s\" is invalid", $language)
            );
        }
    }
private function assertLanguageIsValid(string $language): void
    {
        if (!$this->codeIsValid($language)) {
            throw new InvalidLanguageCodeException(
                sprintf("Language code \"%s\" is invalid", $language)
            );
        }
    }
private function assertLanguageIsValid ( string $ language ) : void { if ( ! $ this -> codeIsValid ( $ language ) ) { throw new InvalidLanguageCodeException ( sprintf ( "Language code \"%s\" is invalid" , $ language ) ) ; } }
Checks that specified language code is valid

@param string $language

@throws InvalidLanguageCodeException
Checks that specified language code is valid