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)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Entity\QRCode;
|
||||
namespace App\Entity\Input\QRCode;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Entity\QRCode;
|
||||
namespace App\Entity\Input\QRCode;
|
||||
|
||||
use App\Validator\Currency;
|
||||
use App\Validator\Money;
|
||||
@@ -1,10 +1,9 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Entity\QRCode;
|
||||
namespace App\Entity\Input\QRCode;
|
||||
|
||||
use App\Validator\BankPaymentIdentificationNumber;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
* Payment identification for QR code
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Entity\QRCode;
|
||||
namespace App\Entity\Input\QRCode;
|
||||
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
Reference in New Issue
Block a user