API reference / Quittio \ Core \ Pdf \ Qr
PaymentQrGenerator
interface in quittio/core
Quittio\Core\Pdf\Qr\PaymentQrGenerator · Source
Creates the payload of a payment QR code (GiroCode, Swiss QR bill, …).
Methods#
| Method | Description |
|---|---|
->key() | |
->payload() | Text content of the QR code, or null if no code can be created. |
->supports() |
key()#
public function key(): string- Returns
string
payload()#
public function payload(InvoiceData $invoice, array<string, mixed> $options = []): ?stringText content of the QR code, or null if no code can be created.
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData | |
$options | array<string, mixed> = [] |
- Returns
?string
supports()#
public function supports(InvoiceData $invoice): bool| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData |
- Returns
bool