From 96d5aa22190dcd3e8ee161f32d756832caf32b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sat, 17 Jun 2023 13:14:43 +0200 Subject: [PATCH] RVRNEXT-43 add model for transaction payee --- src/PersistentData/Model/TransactionPayee.php | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/PersistentData/Model/TransactionPayee.php diff --git a/src/PersistentData/Model/TransactionPayee.php b/src/PersistentData/Model/TransactionPayee.php new file mode 100644 index 0000000..289f3c9 --- /dev/null +++ b/src/PersistentData/Model/TransactionPayee.php @@ -0,0 +1,60 @@ + Transaction::class, 'user' => User::class]; + + private ?Transaction $transaction = null; + + private ?int $transactionId = null; + + private ?User $user = null; + + private ?int $userId = null; + + public function setTransaction(Transaction $transaction): void + { + $this->transaction = $transaction; + } + + public function setTransactionId(int $transactionId): void + { + $this->transactionId = $transactionId; + } + + public function setUser(User $user): void + { + $this->user = $user; + } + + public function setUserId(int $userId): void + { + $this->userId = $userId; + } + + public function getTransaction(): ?Transaction + { + return $this->transaction; + } + + public function getTransactionId(): ?int + { + return $this->transactionId; + } + + public function getUser(): ?User + { + return $this->user; + } + + public function getUserId(): ?int + { + return $this->userId; + } +}