public function getAllPartsByMimeType($mimeType)
    {
        $partFilter = $this->partFilterFactory->newFilterFromContentType($mimeType);
        return $this->getAllParts($partFilter);
    }
public function getAllPartsByMimeType($mimeType)
    {
        $partFilter = $this->partFilterFactory->newFilterFromContentType($mimeType);
        return $this->getAllParts($partFilter);
    }
public function getAllPartsByMimeType ( $ mimeType ) { $ partFilter = $ this -> partFilterFactory -> newFilterFromContentType ( $ mimeType ) ; return $ this -> getAllParts ( $ partFilter ) ; }
Returns an array of all parts associated with the passed mime type if any
exist or null otherwise.

@param string $mimeType
@return MessagePart[] or null
Returns an array of all parts associated with the passed mime type if any exist or null otherwise .