public function getAllAttachmentParts()
    {
        $parts = $this->getAllParts(
            $this->partFilterFactory->newFilterFromArray([
                'multipart' => PartFilter::FILTER_EXCLUDE
            ])
        );
        return array_values(array_filter(
            $parts,
            function ($part) {
                return !(
                    $part->isTextPart()
                    && $part->getContentDisposition() === 'inline'
                );
            }
        ));
    }
public function getAllAttachmentParts()
    {
        $parts = $this->getAllParts(
            $this->partFilterFactory->newFilterFromArray([
                'multipart' => PartFilter::FILTER_EXCLUDE
            ])
        );
        return array_values(array_filter(
            $parts,
            function ($part) {
                return !(
                    $part->isTextPart()
                    && $part->getContentDisposition() === 'inline'
                );
            }
        ));
    }
public function getAllAttachmentParts ( ) { $ parts = $ this -> getAllParts ( $ this -> partFilterFactory -> newFilterFromArray ( [ 'multipart' => PartFilter :: FILTER_EXCLUDE ] ) ) ; return array_values ( array_filter ( $ parts , function ( $ part ) { return ! ( $ part -> isTextPart ( ) && $ part -> getContentDisposition ( ) === 'inline' ) ; } ) ) ; }
Returns all attachment parts.

"Attachments" are any non-multipart, non-signature and any text or html
html part witha Content-Disposition set to  'attachment'.

@return MessagePart[]
Returns all attachment parts .