From f450e2db432fe7badc728fdfdfcb5d8bbd729402 Mon Sep 17 00:00:00 2001 From: Ondrej Vlach Date: Tue, 16 Jan 2024 20:30:15 +0100 Subject: [PATCH] feat: add QRCode definition --- src/Entity/QRCode/QRCode.php | 98 +++++++++++++++++++ src/Entity/QRCode/QRCodeMoney.php | 47 +++++++++ .../QRCode/QRCodePaymentIdentification.php | 45 +++++++++ src/Entity/QRCode/QRCodeQROptions.php | 32 ++++++ 4 files changed, 222 insertions(+) create mode 100644 src/Entity/QRCode/QRCode.php create mode 100644 src/Entity/QRCode/QRCodeMoney.php create mode 100644 src/Entity/QRCode/QRCodePaymentIdentification.php create mode 100644 src/Entity/QRCode/QRCodeQROptions.php diff --git a/src/Entity/QRCode/QRCode.php b/src/Entity/QRCode/QRCode.php new file mode 100644 index 0000000..f617b4f --- /dev/null +++ b/src/Entity/QRCode/QRCode.php @@ -0,0 +1,98 @@ +iban = $iban; + $this->dueDate = $dueDate; + $this->message = $message; + $this->money = $money; + $this->codeQROptions = $codeQROptions; + } + + public function getIban(): ?string + { + return $this->iban; + } + + public function setIban(?string $iban): void + { + $this->iban = $iban; + } + + public function getDueDate(): ?\DateTime + { + return $this->dueDate; + } + + public function setDueDate(?\DateTime $dueDate): void + { + $this->dueDate = $dueDate; + } + + public function getMessage(): ?string + { + return $this->message; + } + + public function setMessage(?string $message): void + { + $this->message = $message; + } + + public function getMoney(): ?QRCodeMoney + { + return $this->money; + } + + public function setMoney(?QRCodeMoney $money): void + { + $this->money = $money; + } + + public function getCodeQROptions(): ?QRCodeQROptions + { + return $this->codeQROptions; + } + + + public function getPaymentIdentification(): ?QRCodePaymentIdentification + { + return $this->paymentIdentification; + } + + public function setPaymentIdentification(?QRCodePaymentIdentification $paymentIdentification): void + { + $this->paymentIdentification = $paymentIdentification; + } + + + + +} diff --git a/src/Entity/QRCode/QRCodeMoney.php b/src/Entity/QRCode/QRCodeMoney.php new file mode 100644 index 0000000..9dcb07d --- /dev/null +++ b/src/Entity/QRCode/QRCodeMoney.php @@ -0,0 +1,47 @@ +amount = $amount; + $this->currency = $currency; + } + + + public function getAmount(): ?string + { + return $this->amount; + } + + public function setAmount(?string $amount): void + { + $this->amount = $amount; + } + + public function getCurrency(): ?string + { + return $this->currency; + } + + public function setCurrency(?string $currency): void + { + $this->currency = $currency; + } + + +} diff --git a/src/Entity/QRCode/QRCodePaymentIdentification.php b/src/Entity/QRCode/QRCodePaymentIdentification.php new file mode 100644 index 0000000..c66d977 --- /dev/null +++ b/src/Entity/QRCode/QRCodePaymentIdentification.php @@ -0,0 +1,45 @@ +variableSymbol; + } + + public function setVariableSymbol(string $variableSymbol): void + { + $this->variableSymbol = $variableSymbol; + } + + public function getSpecificSymbol(): string + { + return $this->specificSymbol; + } + + public function setSpecificSymbol(string $specificSymbol): void + { + $this->specificSymbol = $specificSymbol; + } + + public function getConstantSymbol(): string + { + return $this->constantSymbol; + } + + public function setConstantSymbol(string $constantSymbol): void + { + $this->constantSymbol = $constantSymbol; + } + + +} diff --git a/src/Entity/QRCode/QRCodeQROptions.php b/src/Entity/QRCode/QRCodeQROptions.php new file mode 100644 index 0000000..25fed77 --- /dev/null +++ b/src/Entity/QRCode/QRCodeQROptions.php @@ -0,0 +1,32 @@ +scale = $scale; + $this->margin = $margin; + } + + public function getScale(): int + { + return $this->scale; + } + + public function getMargin(): int + { + return $this->margin; + } +}