Fix PHPStan errors

This commit is contained in:
Mike Colagrosso 2024-05-20 20:37:25 -06:00 committed by Alex Cabal
parent 79daa82bf4
commit 72d679a04f
12 changed files with 53 additions and 0 deletions

View file

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