original_string: private function setHeaderContentType()
      {
          $fileName = basename( $this->fileName );
          if ( $this->contentDisposition !== null && $this->contentDisposition->fileName !== null )
          {
              $fileName = $this->contentDisposition->fileName;
          }
  
          $this->setHeader( 'Content-Type',
                            $this->contentType . '/' . $this->mimeType . '; ' . 'name="' . $fileName . '"' );
      }
code: private function setHeaderContentType()
      {
          $fileName = basename( $this->fileName );
          if ( $this->contentDisposition !== null && $this->contentDisposition->fileName !== null )
          {
              $fileName = $this->contentDisposition->fileName;
          }
  
          $this->setHeader( 'Content-Type',
                            $this->contentType . '/' . $this->mimeType . '; ' . 'name="' . $fileName . '"' );
      }
code_tokens: private function setHeaderContentType ( ) { $ fileName = basename ( $ this -> fileName ) ; if ( $ this -> contentDisposition !== null && $ this -> contentDisposition -> fileName !== null ) { $ fileName = $ this -> contentDisposition -> fileName ; } $ this -> setHeader ( 'Content-Type' , $ this -> contentType . '/' . $ this -> mimeType . '; ' . 'name="' . $ fileName . '"' ) ; }
docstring: Sets the Content-Type header.
  
  Based on the contentType, mimeType and fileName.
docstring_tokens: Sets the Content - Type header .