mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 23:34:48 -04:00
Add enum for view type and fix some type hints
This commit is contained in:
parent
7c8463d297
commit
8cc661015c
10 changed files with 20 additions and 30 deletions
|
@ -6,9 +6,12 @@ use Safe\DateTimeImmutable;
|
|||
* @property ?string $UrlName
|
||||
* @property ?string $Url
|
||||
* @property ?array<string> $AlternateNames
|
||||
* @property ?array<string> $_AlternateNames
|
||||
*/
|
||||
class Artist{
|
||||
/**
|
||||
* @var array<string> $_AlternateNames
|
||||
*/
|
||||
|
||||
use Traits\Accessor;
|
||||
|
||||
public ?int $ArtistId = null;
|
||||
|
@ -18,7 +21,7 @@ class Artist{
|
|||
protected ?int $_DeathYear = null;
|
||||
protected ?string $_UrlName = null;
|
||||
protected ?string $_Url = null;
|
||||
protected ?array $_AlternateNames = null;
|
||||
protected $_AlternateNames = null; // Don't type hint this here, otherwise PHPStan will complain
|
||||
|
||||
// *******
|
||||
// SETTERS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue