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; + } +}