Flesh out some PHPDocs, and consistently name enums

This commit is contained in:
Alex Cabal 2024-05-14 14:31:24 -05:00
parent ace9cea6b7
commit a9eab552ab
25 changed files with 205 additions and 118 deletions

View file

@ -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'
};
}
}