src/Entity/Bank.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Symfony\Component\Serializer\Annotation\Groups;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. #[ORM\Entity(repositoryClass'App\Repository\BankRepository')]
  7. class Bank
  8. {
  9.     #[Groups(['LogService'])]
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\ManyToOne(targetEntity'App\Entity\PersonalInfo'inversedBy'banks')]
  15.     #[ORM\JoinColumn(name'personal_info_id'referencedColumnName'id'onDelete'CASCADE'nullabletrue)]
  16.     private $personalInfo;
  17.     #[ORM\ManyToOne(targetEntity'App\Entity\Office'inversedBy'banks')]
  18.     private $office;
  19.     #[Groups(['LogService'])]
  20.     #[ORM\Column(type'string'length128nullablefalse)]
  21.     private $name;
  22.     #[Groups(['LogService'])]
  23.     #[ORM\Column(type'string'length128nullablefalse)]
  24.     private $accountName;
  25.     #[Groups(['LogService'])]
  26.     #[ORM\Column(type'string'length64nullablefalse)]
  27.     private $accountNumber;
  28.     #[Groups(['LogService'])]
  29.     #[ORM\Column(type'string'length32nullabletrue)]
  30.     private $swiftCode;
  31.     #[Groups(['LogService'])]
  32.     #[ORM\Column(type'string'length255nullabletrue)]
  33.     private $address;
  34.     #[Groups(['LogService'])]
  35.     #[ORM\Column(type'string'length128nullabletrue)]
  36.     private $branchName;
  37.     #[Groups(['LogService'])]
  38.     #[ORM\Column(type'string'length64nullabletrue)]
  39.     private $branchCode;
  40.     #[Groups(['LogService'])]
  41.     #[ORM\Column(type'string'length255nullabletrue)]
  42.     private $notes;
  43.     #[Groups(['LogService'])]
  44.     #[ORM\Column(type'string'length16nullabletrue)]
  45.     private $currency;
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getPersonalInfo(): ?PersonalInfo
  51.     {
  52.         return $this->personalInfo;
  53.     }
  54.     public function setPersonalInfo(?PersonalInfo $personalInfo): self
  55.     {
  56.         $this->personalInfo $personalInfo;
  57.         return $this;
  58.     }
  59.     public function getOffice(): ?Office
  60.     {
  61.         return $this->office;
  62.     }
  63.     public function setOffice(?Office $office): self
  64.     {
  65.         $this->office $office;
  66.         return $this;
  67.     }
  68.     public function getName(): ?string
  69.     {
  70.         return $this->name;
  71.     }
  72.     public function setName(?string $name): self
  73.     {
  74.         $this->name $name;
  75.         return $this;
  76.     }
  77.     public function getAccountName(): ?string
  78.     {
  79.         return $this->accountName;
  80.     }
  81.     public function setAccountName(?string $accountName): self
  82.     {
  83.         $this->accountName $accountName;
  84.         return $this;
  85.     }
  86.     public function getAccountNumber(): ?string
  87.     {
  88.         return $this->accountNumber;
  89.     }
  90.     public function setAccountNumber(?string $accountNumber): self
  91.     {
  92.         $this->accountNumber $accountNumber;
  93.         return $this;
  94.     }
  95.     public function getSwiftCode(): ?string
  96.     {
  97.         return $this->swiftCode;
  98.     }
  99.     public function setSwiftCode(?string $swiftCode): self
  100.     {
  101.         $this->swiftCode $swiftCode;
  102.         return $this;
  103.     }
  104.     public function getAddress(): ?string
  105.     {
  106.         return $this->address;
  107.     }
  108.     public function setAddress(?string $address): self
  109.     {
  110.         $this->address $address;
  111.         return $this;
  112.     }
  113.     public function getBranchName(): ?string
  114.     {
  115.         return $this->branchName;
  116.     }
  117.     public function setBranchName(?string $branchName): self
  118.     {
  119.         $this->branchName $branchName;
  120.         return $this;
  121.     }
  122.     public function getBranchCode(): ?string
  123.     {
  124.         return $this->branchCode;
  125.     }
  126.     public function setBranchCode(?string $branchCode): self
  127.     {
  128.         $this->branchCode $branchCode;
  129.         return $this;
  130.     }
  131.     public function getNotes(): ?string
  132.     {
  133.         return $this->notes;
  134.     }
  135.     public function setNotes(?string $notes): self
  136.     {
  137.         $this->notes $notes;
  138.         return $this;
  139.     }
  140.     public function getCurrency(): ?string
  141.     {
  142.         return $this->currency;
  143.     }
  144.     public function setCurrency(?string $currency): self
  145.     {
  146.         $this->currency $currency;
  147.         return $this;
  148.     }
  149. }