<?php
namespace App\Entity;
use App\Repository\CustomerBankAccountRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CustomerBankAccountRepository::class)]
class CustomerBankAccount
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $bank = null;
#[ORM\Column(length: 255)]
private ?string $holder = null;
#[ORM\Column(length: 255)]
private ?string $iban = null;
#[ORM\Column(length: 255)]
private ?string $bic = null;
#[ORM\ManyToOne(targetEntity: Customer::class, inversedBy: 'bankAccounts')]
#[ORM\JoinColumn(name: 'fk_customer', nullable: false)]
private ?Customer $customer;
public function getId(): ?int
{
return $this->id;
}
public function getBank(): ?string
{
return $this->bank;
}
public function setBank(string $bank): self
{
$this->bank = $bank;
return $this;
}
public function getHolder(): ?string
{
return $this->holder;
}
public function setHolder(string $holder): self
{
$this->holder = $holder;
return $this;
}
public function getIban(): ?string
{
return $this->iban;
}
public function setIban(string $iban): self
{
$this->iban = $iban;
return $this;
}
public function getCustomer(): ?Customer
{
return $this->customer;
}
public function setCustomer(?Customer $customer): self
{
$this->customer = $customer;
return $this;
}
public function getBic(): ?string
{
return $this->bic;
}
public function setBic(string $bic): self
{
$this->bic = $bic;
return $this;
}
}