src/Message/PartFilter.php
private function failsSignedPartFilter(MessagePart $part)
    {
        if ($this->signedpart === static::FILTER_OFF) {
            return false;
        } elseif (!$part->isMime() || $part->getParent() === null) {
            return ($this->signedpart === static::FILTER_INCLUDE);
        }
        $partMimeType = $part->getContentType();
        $parentMimeType = $part->getParent()->getContentType();
        $parentProtocol = $part->getParent()->getHeaderParameter('Content-Type', 'protocol');
        if (strcasecmp($parentMimeType, 'multipart/signed') === 0 && strcasecmp($partMimeType, $parentProtocol) === 0) {
            return ($this->signedpart === static::FILTER_EXCLUDE);
        }
        return ($this->signedpart === static::FILTER_INCLUDE);
    }
private function failsSignedPartFilter(MessagePart $part)
    {
        if ($this->signedpart === static::FILTER_OFF) {
            return false;
        } elseif (!$part->isMime() || $part->getParent() === null) {
            return ($this->signedpart === static::FILTER_INCLUDE);
        }
        $partMimeType = $part->getContentType();
        $parentMimeType = $part->getParent()->getContentType();
        $parentProtocol = $part->getParent()->getHeaderParameter('Content-Type', 'protocol');
        if (strcasecmp($parentMimeType, 'multipart/signed') === 0 && strcasecmp($partMimeType, $parentProtocol) === 0) {
            return ($this->signedpart === static::FILTER_EXCLUDE);
        }
        return ($this->signedpart === static::FILTER_INCLUDE);
    }
private function failsSignedPartFilter ( MessagePart $ part ) { if ( $ this -> signedpart === static :: FILTER_OFF ) { return false ; } elseif ( ! $ part -> isMime ( ) || $ part -> getParent ( ) === null ) { return ( $ this -> signedpart === static :: FILTER_INCLUDE ) ; } $ partMimeType = $ part -> getContentType ( ) ; $ parentMimeType = $ part -> getParent ( ) -> getContentType ( ) ; $ parentProtocol = $ part -> getParent ( ) -> getHeaderParameter ( 'Content-Type' , 'protocol' ) ; if ( strcasecmp ( $ parentMimeType , 'multipart/signed' ) === 0 && strcasecmp ( $ partMimeType , $ parentProtocol ) === 0 ) { return ( $ this -> signedpart === static :: FILTER_EXCLUDE ) ; } return ( $ this -> signedpart === static :: FILTER_INCLUDE ) ; }
Returns true if the passed MessagePart fails the filter's signedpart
filter settings.

@param MessagePart $part
@return boolean
Returns true if the passed MessagePart fails the filter s signedpart filter settings .