From 9bf46c9675e7448e295d7006256f45d033eeb481 Mon Sep 17 00:00:00 2001 From: Roliga Date: Sun, 3 Nov 2019 17:36:08 +0100 Subject: [PATCH] Add getMimeType function --- FormatInterface.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/FormatInterface.md b/FormatInterface.md index 56a9c16..6e8e28d 100644 --- a/FormatInterface.md +++ b/FormatInterface.md @@ -8,6 +8,7 @@ The `FormatInterface`interface defines functions that need to be implemented by * [getCharset](#the-getcharset-function) * [setExtraInfos](#the-setextrainfos-function) * [getExtraInfos](#the-getextrainfos-function) +* [getMimeType](#the-getmimetype-function) Find a [template](#template) at the end of this file @@ -84,6 +85,14 @@ The `getExtraInfos` function returns the information previously set via the [`se getExtraInfos(): array ``` +## The `getMimeType` function + +The `getMimeType` function returns the expected [MIME type](https://en.wikipedia.org/wiki/Media_type#Common_examples) of the format's output. + +```PHP +getMimeType(): string +``` + # Template This is a bare minimum template for a format: