web/lib/EbookSource.php
2024-01-30 11:10:05 -06:00

22 lines
410 B
PHP

<?
enum EbookSourceType{
case ProjectGutenberg;
case ProjectGutenbergAustralia;
case ProjectGutenbergCanada;
case InternetArchive;
case HathiTrust;
case Wikisource;
case GoogleBooks;
case FadedPage;
case Other;
}
class EbookSource{
public EbookSourceType $Type;
public string $Url;
public function __construct(EbookSourceType $type, string $url){
$this->Type = $type;
$this->Url = $url;
}
}