Skip to content

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#

PropertyTypeDescription
$holderName readonly?string
$primaryAccountNumber readonlystring

Methods#

MethodDescription
->__construct()
->with()Returns a copy with the given properties replaced.

__construct()#

public function __construct(string $primaryAccountNumber, ?string $holderName = null)
ParameterTypeDescription
$primaryAccountNumberstring
$holderName?string = null

with()#

public function with(array<string, mixed> $changes): static

Returns a copy with the given properties replaced.

ParameterTypeDescription
$changesarray<string, mixed>
Returns
static

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.