mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 18:42:00 -04:00
Add type hints for remaining classes
This commit is contained in:
parent
d7718218ad
commit
783c09864f
35 changed files with 212 additions and 210 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue