original_string: public function finish()
      {
          if ( $this->parserState != self::PARSE_STATE_POST_LAST )
          {
              // this should never happen
              // let's give the last parser a chance to clean up after himself
              if ( $this->currentPartParser !== null )
              {
                  $part = $this->currentPartParser->finish();
                  $this->partDone( $part );
                  $this->currentPartParser = null;
              }
          }
          $multipart = $this->finishMultipart();
          ezcMailPartParser::parsePartHeaders( $this->headers, $multipart );
          $multipart->boundary = $this->boundary;
          return $multipart;
      }
code: public function finish()
      {
          if ( $this->parserState != self::PARSE_STATE_POST_LAST )
          {
              // this should never happen
              // let's give the last parser a chance to clean up after himself
              if ( $this->currentPartParser !== null )
              {
                  $part = $this->currentPartParser->finish();
                  $this->partDone( $part );
                  $this->currentPartParser = null;
              }
          }
          $multipart = $this->finishMultipart();
          ezcMailPartParser::parsePartHeaders( $this->headers, $multipart );
          $multipart->boundary = $this->boundary;
          return $multipart;
      }
code_tokens: public function finish ( ) { if ( $ this -> parserState != self :: PARSE_STATE_POST_LAST ) { // this should never happen // let's give the last parser a chance to clean up after himself if ( $ this -> currentPartParser !== null ) { $ part = $ this -> currentPartParser -> finish ( ) ; $ this -> partDone ( $ part ) ; $ this -> currentPartParser = null ; } } $ multipart = $ this -> finishMultipart ( ) ; ezcMailPartParser :: parsePartHeaders ( $ this -> headers , $ multipart ) ; $ multipart -> boundary = $ this -> boundary ; return $ multipart ; }
docstring: Completes the parsing of the multipart and returns the corresponding part.
  
  This method should not be overriden. Use finishMultipart() instead.
  
  @return ezcMailMultipart
docstring_tokens: Completes the parsing of the multipart and returns the corresponding part .