mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 22:30:30 -04:00
15 lines
290 B
PHP
15 lines
290 B
PHP
<?
|
|
|
|
enum EbookFormat: string{
|
|
case Epub = 'epub';
|
|
case Azw3 = 'azw3';
|
|
case Kepub = 'kepub';
|
|
case AdvancedEpub = 'advanced-epub';
|
|
|
|
public function GetMimeType(): string{
|
|
return match($this){
|
|
self::Azw3 => 'application/x-mobi8-ebook',
|
|
default => 'application/epub+zip'
|
|
};
|
|
}
|
|
}
|