Add type hints for remaining classes

This commit is contained in:
Alex Cabal 2024-01-08 14:11:53 -06:00
parent d7718218ad
commit 783c09864f
35 changed files with 212 additions and 210 deletions

View file

@ -1,5 +1,4 @@
<?
class ArtworkTag extends Tag{
// *******
// GETTERS
@ -19,11 +18,11 @@ class ArtworkTag extends Tag{
protected function Validate(): void{
$error = new Exceptions\ValidationException();
if($this->Name === null || strlen($this->Name) === 0){
if(strlen($this->Name) == 0){
$error->Add(new Exceptions\InvalidArtworkTagException());
}
if($this->Url === null || strlen($this->Url) === 0){
if($this->Url === null || strlen($this->Url) == 0){
$error->Add(new Exceptions\InvalidArtworkTagException());
}