public function setContentLanguageHeader(string $header)
    {
        if (Validation::isValidContentLanguage($header)) {
            $this->contentLanguageHeader = $header;
        } else {
            throw new CustomException('Invalid language');
        }
    }
public function setContentLanguageHeader(string $header)
    {
        if (Validation::isValidContentLanguage($header)) {
            $this->contentLanguageHeader = $header;
        } else {
            throw new CustomException('Invalid language');
        }
    }
public function setContentLanguageHeader ( string $ header ) { if ( Validation :: isValidContentLanguage ( $ header ) ) { $ this -> contentLanguageHeader = $ header ; } else { throw new CustomException ( 'Invalid language' ) ; } }
Set the content language header

@var string $header
Set the content language header