mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Flesh out some PHPDocs, and consistently name enums
This commit is contained in:
parent
ace9cea6b7
commit
a9eab552ab
25 changed files with 205 additions and 118 deletions
|
@ -1,14 +0,0 @@
|
|||
<?
|
||||
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'
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue