feat: better data wf

This commit is contained in:
2024-01-18 16:41:03 +01:00
parent 9bd3b5efff
commit 1a3cf1c2e0
22 changed files with 186 additions and 77 deletions

View File

@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Entity\DTO\QRCode;
readonly class QRCode {
public function __construct(
public string $iban,
public \DateTimeImmutable $dueDate,
public string $message,
public QRCodeMoney $money,
public QRCodeQROptions $qrOptions,
public ?QRCodePaymentIdentification $paymentIdentification)
{ }
}

View File

@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace App\Entity\DTO\QRCode;
readonly class QRCodeMoney
{
public function __construct(public string $amount, public string $currency) { }
}

View File

@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace App\Entity\DTO\QRCode;
readonly class QRCodePaymentIdentification
{
public function __construct(public ?string $variableSymbol, public ?string $specificSymbol, public ?string $constantSymbol) { }
}

View File

@@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
namespace App\Entity\DTO\QRCode;
readonly class QRCodeQROptions
{
public function __construct(public int $scale, public int $margin)
{
}
}