mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 05:14:48 -04:00
Add @throws to Ebook::GetByIdentifier
This commit is contained in:
parent
196f5ae573
commit
3ef1af1237
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue