<?php
namespace App\Entity;
use Symfony\Component\Serializer\Annotation\Groups;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: 'App\Repository\BankRepository')]
class Bank
{
#[Groups(['LogService'])]
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: 'App\Entity\PersonalInfo', inversedBy: 'banks')]
#[ORM\JoinColumn(name: 'personal_info_id', referencedColumnName: 'id', onDelete: 'CASCADE', nullable: true)]
private $personalInfo;
#[ORM\ManyToOne(targetEntity: 'App\Entity\Office', inversedBy: 'banks')]
private $office;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 128, nullable: false)]
private $name;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 128, nullable: false)]
private $accountName;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 64, nullable: false)]
private $accountNumber;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 32, nullable: true)]
private $swiftCode;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $address;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 128, nullable: true)]
private $branchName;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 64, nullable: true)]
private $branchCode;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $notes;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 16, nullable: true)]
private $currency;
public function getId(): ?int
{
return $this->id;
}
public function getPersonalInfo(): ?PersonalInfo
{
return $this->personalInfo;
}
public function setPersonalInfo(?PersonalInfo $personalInfo): self
{
$this->personalInfo = $personalInfo;
return $this;
}
public function getOffice(): ?Office
{
return $this->office;
}
public function setOffice(?Office $office): self
{
$this->office = $office;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getAccountName(): ?string
{
return $this->accountName;
}
public function setAccountName(?string $accountName): self
{
$this->accountName = $accountName;
return $this;
}
public function getAccountNumber(): ?string
{
return $this->accountNumber;
}
public function setAccountNumber(?string $accountNumber): self
{
$this->accountNumber = $accountNumber;
return $this;
}
public function getSwiftCode(): ?string
{
return $this->swiftCode;
}
public function setSwiftCode(?string $swiftCode): self
{
$this->swiftCode = $swiftCode;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(?string $address): self
{
$this->address = $address;
return $this;
}
public function getBranchName(): ?string
{
return $this->branchName;
}
public function setBranchName(?string $branchName): self
{
$this->branchName = $branchName;
return $this;
}
public function getBranchCode(): ?string
{
return $this->branchCode;
}
public function setBranchCode(?string $branchCode): self
{
$this->branchCode = $branchCode;
return $this;
}
public function getNotes(): ?string
{
return $this->notes;
}
public function setNotes(?string $notes): self
{
$this->notes = $notes;
return $this;
}
public function getCurrency(): ?string
{
return $this->currency;
}
public function setCurrency(?string $currency): self
{
$this->currency = $currency;
return $this;
}
}