Remove EbookSource::FromTypeAndUrl()

This commit is contained in:
Mike Colagrosso 2024-10-22 17:32:18 -06:00 committed by Alex Cabal
parent 6bec232d37
commit e9cf55b53f
2 changed files with 22 additions and 27 deletions

View file

@ -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
*/