mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 18:42:00 -04:00
Add type hints to Artist class members
This commit is contained in:
parent
8e37543fa3
commit
d7718218ad
3 changed files with 8 additions and 15 deletions
|
@ -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 '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue