public function setAcceptLanguageHeader(string $header)
    {
        if (Validation::isValidAcceptLanguage($header)) {
            $this->acceptLanguageHeader = $header;
        } else {
            throw new CustomException('Invalid accept language');
        }
    }
public function setAcceptLanguageHeader(string $header)
    {
        if (Validation::isValidAcceptLanguage($header)) {
            $this->acceptLanguageHeader = $header;
        } else {
            throw new CustomException('Invalid accept language');
        }
    }
public function setAcceptLanguageHeader ( string $ header ) { if ( Validation :: isValidAcceptLanguage ( $ header ) ) { $ this -> acceptLanguageHeader = $ header ; } else { throw new CustomException ( 'Invalid accept language' ) ; } }
Set accept language header

@var string $header The accept language header
Set accept language header