mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
22 lines
410 B
PHP
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;
|
|
}
|
|
}
|