protected function getFirstPartOfMimeType($mimeType) { return substr($mimeType, 0, strpos($mimeType, '/')); }