1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-05 16:17:28 +02:00

Add getMimeType function

Roliga
2019-11-03 17:36:08 +01:00
parent a5496eea73
commit 9bf46c9675

@@ -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: