Rename PropertiesBase to more accurate Accessor

This commit is contained in:
Alex Cabal 2024-02-24 13:58:24 -06:00
parent 06fce2f089
commit 350f65532f
13 changed files with 13 additions and 13 deletions

View file

@ -1,5 +1,5 @@
<?
abstract class PropertiesBase{
abstract class Accessor{
/**
* @return mixed
*/

View file

@ -9,7 +9,7 @@ use function Safe\date;
* @property array<string> $AlternateNames
* @property array<string> $_AlternateNames
*/
class Artist extends PropertiesBase{
class Artist extends Accessor{
public ?int $ArtistId = null;
public ?string $Name = null;
public ?datetime $Created = null;

View file

@ -34,7 +34,7 @@ use function Safe\preg_replace;
* @property ?ImageMimeType $MimeType
* @property ?array<ArtworkTag> $_Tags
*/
class Artwork extends PropertiesBase{
class Artwork extends Accessor{
public ?string $Name = null;
public ?int $ArtworkId = null;
public ?int $ArtistId = null;

View file

@ -3,7 +3,7 @@ use function Safe\parse_url;
use function Safe\preg_match;
use function Safe\preg_replace;
class Museum extends PropertiesBase{
class Museum extends Accessor{
public int $MuseumId;
public string $Name;
public string $Domain;

View file

@ -5,7 +5,7 @@ use Safe\DateTime;
* @property User $User
* @property string $Url
*/
class NewsletterSubscription extends PropertiesBase{
class NewsletterSubscription extends Accessor{
public bool $IsConfirmed = false;
public bool $IsSubscribedToSummary = false;
public bool $IsSubscribedToNewsletter = false;

View file

@ -4,7 +4,7 @@ use Safe\DateTime;
/**
* @property User $User
*/
class Patron extends PropertiesBase{
class Patron extends Accessor{
public ?int $UserId = null;
protected $_User = null;
public bool $IsAnonymous;

View file

@ -2,7 +2,7 @@
/**
* @property User $User
*/
class Payment extends PropertiesBase{
class Payment extends Accessor{
public int $PaymentId;
public ?int $UserId = null;
public DateTime $Created;

View file

@ -10,7 +10,7 @@ use function Safe\usort;
* @property array<PollItem> $PollItemsByWinner
* @property int $VoteCount
*/
class Poll extends PropertiesBase{
class Poll extends Accessor{
public int $PollId;
public string $Name;
public string $UrlName;

View file

@ -3,7 +3,7 @@
* @property int $VoteCount
* @property Poll $Poll
*/
class PollItem extends PropertiesBase{
class PollItem extends Accessor{
public int $PollItemId;
public int $PollId;
public string $Name;

View file

@ -6,7 +6,7 @@ use Safe\DateTime;
* @property PollItem $PollItem
* @property string $Url
*/
class PollVote extends PropertiesBase{
class PollVote extends Accessor{
public int $UserId;
public DateTime $Created;
public ?int $PollItemId = null;

View file

@ -9,7 +9,7 @@ use function Safe\strtotime;
* @property User $User
* @property string $Url
*/
class Session extends PropertiesBase{
class Session extends Accessor{
public int $UserId;
protected ?User $_User = null;
public DateTime $Created;

View file

@ -2,7 +2,7 @@
/**
* @property string $Url
*/
class Tag extends PropertiesBase{
class Tag extends Accessor{
public int $TagId;
public string $Name;
public string $UrlName;

View file

@ -8,7 +8,7 @@ use Safe\DateTime;
* @property Benefits $Benefits
* @property ?array<Payment> $_Payments
*/
class User extends PropertiesBase{
class User extends Accessor{
public int $UserId;
public ?string $Name = null;
public ?string $Email = null;