mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
Fix PHPStan errors
This commit is contained in:
parent
79daa82bf4
commit
72d679a04f
12 changed files with 53 additions and 0 deletions
|
@ -22,6 +22,10 @@ class EbookTag extends Tag{
|
|||
// *******
|
||||
// METHODS
|
||||
// *******
|
||||
|
||||
/**
|
||||
* @throws \Exceptions\ValidationException
|
||||
*/
|
||||
public function Validate(): void{
|
||||
$error = new Exceptions\ValidationException();
|
||||
|
||||
|
@ -34,6 +38,9 @@ class EbookTag extends Tag{
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exceptions\ValidationException
|
||||
*/
|
||||
public function Create(): void{
|
||||
$this->Validate();
|
||||
|
||||
|
@ -44,6 +51,9 @@ class EbookTag extends Tag{
|
|||
$this->TagId = Db::GetLastInsertedId();
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exceptions\ValidationException
|
||||
*/
|
||||
public function GetByNameOrCreate(string $name): EbookTag{
|
||||
$result = Db::Query('
|
||||
SELECT *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue