mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Remove EbookSource::FromTypeAndUrl()
This commit is contained in:
parent
6bec232d37
commit
e9cf55b53f
2 changed files with 22 additions and 27 deletions
|
@ -8,13 +8,6 @@ class EbookSource{
|
|||
public string $Url;
|
||||
public ?int $SortOrder = null;
|
||||
|
||||
public static function FromTypeAndUrl(EbookSourceType $type, string $url): EbookSource{
|
||||
$instance = new EbookSource();
|
||||
$instance->Type = $type;
|
||||
$instance->Url = $url;
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Exceptions\ValidationException
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue