API reference / Quittio \ Core \ Data \ Payment
PaymentCard
final readonly class in quittio/core · uses Immutable
Quittio\Core\Data\Payment\PaymentCard · Source
Payment card information (BG-18). Only the last 4 to 6 digits of the card number may be stored.
Properties#
| Property | Type | Description |
|---|---|---|
$holderName readonly | ?string | |
$primaryAccountNumber readonly | string |
Methods#
| Method | Description |
|---|---|
->__construct() | |
->with() | Returns a copy with the given properties replaced. |
__construct()#
public function __construct(string $primaryAccountNumber, ?string $holderName = null)| Parameter | Type | Description |
|---|---|---|
$primaryAccountNumber | string | |
$holderName | ?string = null |
with()#
public function with(array<string, mixed> $changes): staticReturns a copy with the given properties replaced.
| Parameter | Type | Description |
|---|---|---|
$changes | array<string, mixed> |
- Returns
static