mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -04:00
Rename PropertiesBase to more accurate Accessor
This commit is contained in:
parent
06fce2f089
commit
350f65532f
13 changed files with 13 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
<?
|
||||
abstract class PropertiesBase{
|
||||
abstract class Accessor{
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/**
|
||||
* @property string $Url
|
||||
*/
|
||||
class Tag extends PropertiesBase{
|
||||
class Tag extends Accessor{
|
||||
public int $TagId;
|
||||
public string $Name;
|
||||
public string $UrlName;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue