protected function getAttachments()
    {
        $attachments = array();
        foreach ($this->getSections(self::SECTION_ATTACHMENTS) as $section) {
            $obj = $this->getSection($section);
            $attachment = new IncomingMessageAttachment($obj);
            $objNew = new \stdClass();
            $objNew->name = $attachment->name;
            $objNew->body = $attachment->body;
            $objNew->info = $obj;
            $attachments[] = $objNew;
        }
        $this->attachments = $attachments;
    }
protected function getAttachments()
    {
        $attachments = array();
        foreach ($this->getSections(self::SECTION_ATTACHMENTS) as $section) {
            $obj = $this->getSection($section);
            $attachment = new IncomingMessageAttachment($obj);
            $objNew = new \stdClass();
            $objNew->name = $attachment->name;
            $objNew->body = $attachment->body;
            $objNew->info = $obj;
            $attachments[] = $objNew;
        }
        $this->attachments = $attachments;
    }
protected function getAttachments ( ) { $ attachments = array ( ) ; foreach ( $ this -> getSections ( self :: SECTION_ATTACHMENTS ) as $ section ) { $ obj = $ this -> getSection ( $ section ) ; $ attachment = new IncomingMessageAttachment ( $ obj ) ; $ objNew = new \ stdClass ( ) ; $ objNew -> name = $ attachment -> name ; $ objNew -> body = $ attachment -> body ; $ objNew -> info = $ obj ; $ attachments [ ] = $ objNew ; } $ this -> attachments = $ attachments ; }
Get attachments in the current message.

Set
$this->attachments->name
$this->attachments->body
$this->attachments->info

@return array
Get attachments in the current message .