Add type hints to Artist class members

This commit is contained in:
Alex Cabal 2024-01-08 14:07:30 -06:00
parent 8e37543fa3
commit d7718218ad
3 changed files with 8 additions and 15 deletions

View file

@ -5,23 +5,21 @@ use function Safe\date;
/**
* @property string $UrlName
* @property array<string> $AlternateSpellings
* @property array<string> $_AlternateSpellings
*/
class Artist extends PropertiesBase{
public $ArtistId;
public $Name;
public $DeathYear;
public $Created;
public $Updated;
protected $_UrlName;
protected $_AlternateSpellings;
public ?int $ArtistId;
public ?string $Name;
public ?int $DeathYear;
public ?datetime $Created;
public ?datetime $Updated;
protected ?string $_UrlName;
protected $_AlternateSpellings;
// *******
// GETTERS
// *******
/**
* @return string
*/
protected function GetUrlName(): string{
if($this->Name === null || $this->Name == ''){
return '';