public function addAttachment($type, $name, $data)
    {
        $this->attachments[] = array(
            'type' => $type,
            'name' => $name,
            'content' => $data
        );

        return $this;
    }
public function addAttachment($type, $name, $data)
    {
        $this->attachments[] = array(
            'type' => $type,
            'name' => $name,
            'content' => $data
        );

        return $this;
    }
public function addAttachment ( $ type , $ name , $ data ) { $ this -> attachments [ ] = array ( 'type' => $ type , 'name' => $ name , 'content' => $ data ) ; return $ this ; }
Add supported attachments to add to the message

@param string $type - the MIME type of the attachment - allowed types are text/*, image/*, and application/pdf
@param string $name - the file name of the attachment
@param string $data - base64 encoded attachment data

@return Message
Add supported attachments to add to the message