public function setAcceptHeader(string $header)
    {
        if (Validation::isValidAcceptType($header)) {
            $this->acceptHeader = $header;
        } else {
            throw new CustomException('Invalid accept type');
        }
    }
public function setAcceptHeader(string $header)
    {
        if (Validation::isValidAcceptType($header)) {
            $this->acceptHeader = $header;
        } else {
            throw new CustomException('Invalid accept type');
        }
    }
public function setAcceptHeader ( string $ header ) { if ( Validation :: isValidAcceptType ( $ header ) ) { $ this -> acceptHeader = $ header ; } else { throw new CustomException ( 'Invalid accept type' ) ; } }
Set accept  header

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