setTaxId($teamer->getTaxId()); if (null === $bankAccount = $teamer->getBankAccount()) { return $instance; } return $instance ->setIban($bankAccount->getIban()) ->setBic($bankAccount->getBic()) ->setBank($bankAccount->getBank()) ->setHolder($bankAccount->getHolder()) ; } public function applyTo(Teamer $teamer): void { if (null === $bankAccount = $teamer->getBankAccount()) { $bankAccount = new BankAccount(); $teamer->setBankAccount($bankAccount); } $bankAccount ->setIban($this->getIban()) ->setBic($this->getBic()) ->setBank($this->getBank()) ->setHolder($this->getHolder()) ; $teamer->setTaxId($this->getTaxId()); } public function getTaxId(): ?string { return $this->taxId; } public function setTaxId(?string $taxId): static { $this->taxId = $taxId; return $this; } public function getIban(): ?string { return $this->iban; } public function setIban(?string $iban): static { $this->iban = $iban; return $this; } public function getBic(): ?string { return $this->bic; } public function setBic(?string $bic): static { $this->bic = $bic; return $this; } public function getBank(): ?string { return $this->bank; } public function setBank(?string $bank): static { $this->bank = $bank; return $this; } public function getHolder(): ?string { return $this->holder; } public function setHolder(?string $holder): static { $this->holder = $holder; return $this; } }