mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 21:04:49 -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
|
// ORM METHODS
|
||||||
// ***********
|
// ***********
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws \Exceptions\EbookNotFoundException
|
||||||
|
*/
|
||||||
public static function GetByIdentifier(?string $identifier): Ebook{
|
public static function GetByIdentifier(?string $identifier): Ebook{
|
||||||
if($identifier === null){
|
if($identifier === null){
|
||||||
throw new Exceptions\EbookNotFoundException('Invalid identifier: ' . $identifier);
|
throw new Exceptions\EbookNotFoundException('Invalid identifier: ' . $identifier);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue