public function getMime(array $types) : array
{
try {
$this->checkIfParsed();
} catch (\Jyxo\Mail\Parser\EmailNotExistException $e) {
throw $e;
}
$parts = [];
if (is_array($this->structure['ftype'])) {
foreach ($types as $type) {
foreach (array_keys($this->structure['ftype'], $type) as $key) {
$parts[] = $this->structure['pid'][$key];
}
}
}
return $parts;
}