mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 11:26:37 -04:00
Fix PHPStan errors
This commit is contained in:
parent
79daa82bf4
commit
72d679a04f
12 changed files with 53 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
|||
class LocSubject extends Tag{
|
||||
public int $LocSubjectId;
|
||||
|
||||
/**
|
||||
* @throws \Exceptions\ValidationException
|
||||
*/
|
||||
public function Validate(): void{
|
||||
$error = new Exceptions\ValidationException();
|
||||
|
||||
|
@ -14,6 +17,9 @@ class LocSubject extends Tag{
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exceptions\ValidationException
|
||||
*/
|
||||
public function Create(): void{
|
||||
$this->Validate();
|
||||
|
||||
|
@ -24,6 +30,9 @@ class LocSubject extends Tag{
|
|||
$this->LocSubjectId = Db::GetLastInsertedId();
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exceptions\ValidationException
|
||||
*/
|
||||
public function GetByNameOrCreate(string $name): LocSubject{
|
||||
$result = Db::Query('
|
||||
SELECT *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue