src/Robtimus/Multipart/MultipartMixed.php
/**
     * Adds a nested multipart.
     * @param Multipart $multipart The nested multipart.
     * @return MultipartMixed this object.
     */
Adds a nested multipart.
@param Multipart $multipart The nested multipart.
@return MultipartMixed this object.
Adds a nested multipart . @param Multipart $multipart The nested multipart . @return MultipartMixed this object .
public function addMultipart(Multipart $multipart) {
        $this->startPart();
        $this->addContentType($multipart->getContentType());
        $this->endHeaders();
        $this->addContent(array($multipart, 'read'), $multipart->getContentLength());
        $this->endPart();
        return $this;
    }
public function addMultipart ( Multipart $ multipart ) { $ this -> startPart ( ) ; $ this -> addContentType ( $ multipart -> getContentType ( ) ) ; $ this -> endHeaders ( ) ; $ this -> addContent ( array ( $ multipart , 'read' ) , $ multipart -> getContentLength ( ) ) ; $ this -> endPart ( ) ; return $ this ; }
Adds a nested multipart.
Adds a nested multipart .