Skip to content

Commit

Permalink
SP-735 Type Review: PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarzybok-sumoheavy committed Dec 11, 2023
1 parent fab422b commit 6b2be56
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/BitPaySDK/Model/Invoice/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Invoice
protected ?int $expirationTime = null;
protected ?int $currentTime = null;
protected ?array $transactions = null;
protected bool|string|null $exceptionStatus = null;
protected string|null $exceptionStatus = null;
protected ?int $targetConfirmations = null;
protected ?bool $refundAddressRequestPending = null;
protected ?string $buyerProvidedEmail = null;
Expand Down Expand Up @@ -1098,13 +1098,13 @@ public function setTransactions(array $transactions): void
*
* Initially a boolean false, this parameter will indicate if the purchaser sent too much ("paidOver")
* or not enough funds ("paidPartial") in the transaction to pay the BitPay invoice. Possible values are:
* false: default value (boolean) unless an exception is triggered.
* "false": default value unless an exception is triggered.
* "paidPartial": (string) if the consumer did not send enough funds when paying the invoice.
* "paidOver": (string) if the consumer sent to much funds when paying the invoice.
*
* @return bool|string|null the exception status
* @return string|null the exception status
*/
public function getExceptionStatus(): bool|string|null
public function getExceptionStatus(): string|null
{
return $this->exceptionStatus;
}
Expand All @@ -1114,13 +1114,13 @@ public function getExceptionStatus(): bool|string|null
*
* Initially a boolean false, this parameter will indicate if the purchaser sent too much ("paidOver")
* or not enough funds ("paidPartial") in the transaction to pay the BitPay invoice. Possible values are:
* false: default value (boolean) unless an exception is triggered.
* "false": default value (boolean) unless an exception is triggered.
* "paidPartial": (string) if the consumer did not send enough funds when paying the invoice.
* "paidOver": (string) if the consumer sent to much funds when paying the invoice.
*
* @param boolean $exceptionStatus this parameter will indicate if the purchaser sent too much or not enough funds
* @param string|null $exceptionStatus this parameter will indicate if the purchaser sent too much or not enough funds
*/
public function setExceptionStatus(bool|string|null $exceptionStatus): void
public function setExceptionStatus(string|null $exceptionStatus): void
{
$this->exceptionStatus = $exceptionStatus;
}
Expand Down

0 comments on commit 6b2be56

Please sign in to comment.