Add @throws to Ebook::GetByIdentifier

This commit is contained in:
Mike Colagrosso 2024-04-26 00:02:51 -06:00 committed by Alex Cabal
parent 196f5ae573
commit 3ef1af1237

View file

@ -935,6 +935,9 @@ class Ebook{
// ORM METHODS
// ***********
/**
* @throws \Exceptions\EbookNotFoundException
*/
public static function GetByIdentifier(?string $identifier): Ebook{
if($identifier === null){
throw new Exceptions\EbookNotFoundException('Invalid identifier: ' . $identifier);