public function setContentTypeHeader(string $header)
    {
        if (Validation::isValidContentType($header)) {
            $this->contentTypeHeader = $header;
        } else {
            throw new CustomException('Invalid content type');
        }
    }
public function setContentTypeHeader(string $header)
    {
        if (Validation::isValidContentType($header)) {
            $this->contentTypeHeader = $header;
        } else {
            throw new CustomException('Invalid content type');
        }
    }
public function setContentTypeHeader ( string $ header ) { if ( Validation :: isValidContentType ( $ header ) ) { $ this -> contentTypeHeader = $ header ; } else { throw new CustomException ( 'Invalid content type' ) ; } }
Set the content type header

@var string $header
Set the content type header