Comus Party 1.0.0
Application web de mini-jeux en ligne
Chargement...
Recherche...
Aucune correspondance
invoice.class.php
Aller à la documentation de ce fichier.
1<?php
9
10namespace ComusParty\Models;
11
12use DateTime;
13
23{
27 case Card;
28
32 case PayPal;
33
38}
39
45{
50 private ?int $id;
51
56 private ?string $playerUuid;
57
63
68 private ?DateTime $createdAt;
69
70
77 public function __construct(?int $id = null, ?string $playerUuid = null, ?PaymentType $paymentType = null, ?DateTime $createdAt = null)
78 {
79 $this->id = $id;
80 $this->playerUuid = $playerUuid;
81 $this->paymentType = $paymentType;
82 $this->createdAt = $createdAt;
83 }
84
89 public function getId(): int
90 {
91 return $this->id;
92 }
93
98 public function setId(int $id): void
99 {
100 $this->id = $id;
101 }
102
107 public function getPlayerUuid(): string
108 {
109 return $this->playerUuid;
110 }
111
116 public function setPlayerUuid(string $playerUuid): void
117 {
118 $this->playerUuid = $playerUuid;
119 }
120
125 public function getPaymentType(): PaymentType
126 {
127 return $this->paymentType;
128 }
129
135 {
136 $this->paymentType = $paymentType;
137 }
138
143 public function getCreatedAt(): DateTime
144 {
145 return $this->createdAt;
146 }
147
152 public function setCreatedAt(DateTime $createdAt): void
153 {
154 $this->createdAt = $createdAt;
155 }
156}
setPlayerUuid(string $playerUuid)
Modifie l'UUID du joueur ayant généré et payé la facture.
getCreatedAt()
Retourne la date de création de la facture.
getId()
Retourne l'ID de la facture.
getPlayerUuid()
Retourne l'UUID du joueur ayant généré et payé la facture.
getPaymentType()
Retourne le type de paiement réalisé
setPaymentType(PaymentType $paymentType)
Modifie le type de paiement réalisé
__construct(?int $id=null, ?string $playerUuid=null, ?PaymentType $paymentType=null, ?DateTime $createdAt=null)
setCreatedAt(DateTime $createdAt)
Modifie la date de création de la facture.
setId(int $id)
Modifie l'ID de la facture.
@ ComusCoins
Paiement par carte bancaire.