feat: better data wf
This commit is contained in:
15
src/Entity/DTO/QRCode/QRCode.php
Normal file
15
src/Entity/DTO/QRCode/QRCode.php
Normal 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)
|
||||
{ }
|
||||
}
|
||||
9
src/Entity/DTO/QRCode/QRCodeMoney.php
Normal file
9
src/Entity/DTO/QRCode/QRCodeMoney.php
Normal 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) { }
|
||||
}
|
||||
9
src/Entity/DTO/QRCode/QRCodePaymentIdentification.php
Normal file
9
src/Entity/DTO/QRCode/QRCodePaymentIdentification.php
Normal 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) { }
|
||||
}
|
||||
11
src/Entity/DTO/QRCode/QRCodeQROptions.php
Normal file
11
src/Entity/DTO/QRCode/QRCodeQROptions.php
Normal 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)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user