mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 10:56:46 -04:00
Style tweaks for getters and add more type hinting
This commit is contained in:
parent
9e31ed1aac
commit
50efeb05d1
13 changed files with 87 additions and 84 deletions
|
@ -26,6 +26,10 @@ class ArtworkTag extends Tag{
|
|||
// *******
|
||||
// METHODS
|
||||
// *******
|
||||
|
||||
/**
|
||||
* @throws Exceptions\ValidationException
|
||||
*/
|
||||
public function Validate(): void{
|
||||
$error = new Exceptions\InvalidArtworkTagException($this->Name);
|
||||
|
||||
|
@ -61,7 +65,7 @@ class ArtworkTag extends Tag{
|
|||
}
|
||||
|
||||
/**
|
||||
* @throws \Exceptions\ValidationException
|
||||
* @throws Exceptions\ValidationException
|
||||
*/
|
||||
public static function GetOrCreate(ArtworkTag $artworkTag): ArtworkTag{
|
||||
$result = Db::Query('
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue