Convert ebook SORT_ constants to an enum

This commit is contained in:
Mike Colagrosso 2024-01-29 23:34:48 -07:00 committed by Alex Cabal
parent 94dce1009a
commit 980ed8cea9
5 changed files with 17 additions and 16 deletions

7
lib/EbookSort.php Normal file
View file

@ -0,0 +1,7 @@
<?
enum EbookSort: string{
case Newest = 'newest';
case AuthorAlpha = 'author-alpha';
case ReadingEase = 'reading-ease';
case Length = 'length';
}