mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Change Accessor from class to trait
This commit is contained in:
parent
10bea9ad9e
commit
41dd9db4aa
13 changed files with 43 additions and 24 deletions
|
@ -8,7 +8,9 @@ use Safe\DateTimeImmutable;
|
|||
* @property array<string> $AlternateNames
|
||||
* @property array<string> $_AlternateNames
|
||||
*/
|
||||
class Artist extends Accessor{
|
||||
class Artist{
|
||||
use Traits\Accessor;
|
||||
|
||||
public ?int $ArtistId = null;
|
||||
public ?string $Name = null;
|
||||
public ?DateTimeImmutable $Created = null;
|
||||
|
@ -16,7 +18,7 @@ class Artist extends Accessor{
|
|||
protected ?int $_DeathYear = null;
|
||||
protected ?string $_UrlName = null;
|
||||
protected ?string $_Url = null;
|
||||
protected $_AlternateNames;
|
||||
protected array $_AlternateNames;
|
||||
|
||||
// *******
|
||||
// SETTERS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue