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;
    }
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;
    }
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 ; }
Completes the parsing of the multipart and returns the corresponding part.

This method should not be overriden. Use finishMultipart() instead.

@return ezcMailMultipart
Completes the parsing of the multipart and returns the corresponding part .