<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\InfoBancaireRepository")
*/
class BankInfo
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="bigint", nullable=true)
*/
private $idMangopay;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayCard", mappedBy="idBankUser", cascade={"persist", "remove"})
*/
private $mangopayCards;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayBankaccount", mappedBy="idBankInfo", cascade={"persist", "remove"})
*/
private $mangopayBankaccounts;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayWallet", mappedBy="idBankInfo", cascade={"persist", "remove"})
*/
private $mangopayWallets;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayKycDocument", mappedBy="idBankInfo", cascade={"persist", "remove"})
*/
private $mangopayKycDocuments;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayUboDeclaration", mappedBy="idBankInfo", cascade={"persist", "remove"})
*/
private $mangopayUboDeclarations;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayRepudiation", mappedBy="idBankInfo", cascade={"persist", "remove"})
*/
private $mangopayRepudiations;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayTransfer", mappedBy="idBankInfo", cascade={"persist", "remove"})
*/
private $mangopayTransfers;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayPayin", mappedBy="idPayer", cascade={"persist", "remove"})
*/
private $mangopayPayerPayins;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayPayin", mappedBy="idCollector", cascade={"persist", "remove"})
*/
private $mangopayCollectorPayins;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayPayout", mappedBy="idBankInfo", cascade={"persist", "remove"})
*/
private $mangopayPayouts;
/**
* @ORM\OneToMany(targetEntity="App\Entity\MangopayRefund", mappedBy="idBankInfo", cascade={"persist", "remove"})
*/
private $mangopayRefunds;
private $cardName;
private $cardNumber;
private $cardExpirateDay;
private $cvsKey;
private $bankIdentifierCode;
private $internationalBankAccountNumber;
private $bankAdress;
private $bankCity;
private $bankPostalCode;
private $bankCountry;
/**
* @ORM\OneToOne(targetEntity="App\Entity\User", cascade={"persist", "remove"})
*/
private $user;
/**
* @ORM\OneToMany(targetEntity="App\Entity\KycFile", mappedBy="idUser")
*/
private $kycFiles;
public function __construct()
{
$this->mangopayCards = new ArrayCollection();
$this->mangopayBankaccounts = new ArrayCollection();
$this->mangopayWallets = new ArrayCollection();
$this->mangopayKycDocuments = new ArrayCollection();
$this->mangopayUboDeclarations = new ArrayCollection();
$this->mangopayRepudiations = new ArrayCollection();
$this->mangopayTransfers = new ArrayCollection();
$this->mangopayPayerPayins = new ArrayCollection();
$this->mangopayCollectorPayins = new ArrayCollection();
$this->mangopayPayouts = new ArrayCollection();
$this->mangopayRefunds = new ArrayCollection();
$this->kycFiles = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getIdMangopay()
{
return $this->idMangopay;
}
public function setIdMangopay($idMangopay): self
{
$this->idMangopay = $idMangopay;
return $this;
}
public function getCardName(): ?string
{
return $this->cardName;
}
public function setCardName(string $cardName): self
{
$this->cardName = $cardName;
return $this;
}
public function getCardNumber(): ?string
{
return $this->cardNumber;
}
public function setCardNumber(?string $cardNumber): self
{
$this->cardNumber = $cardNumber;
return $this;
}
public function getCardExpirateDay(): ?\DateTimeInterface
{
return $this->cardExpirateDay;
}
public function setCardExpirateDay(?\DateTimeInterface $cardExpirateDay): self
{
$this->cardExpirateDay = $cardExpirateDay;
return $this;
}
public function getCvsKey(): ?int
{
return $this->cvsKey;
}
public function setCvsKey(?int $cvsKey): self
{
$this->cvsKey = $cvsKey;
return $this;
}
public function getBankIdentifierCode(): ?string
{
return $this->bankIdentifierCode;
}
public function setBankIdentifierCode(?string $bankIdentifierCode): self
{
$this->bankIdentifierCode = $bankIdentifierCode;
return $this;
}
public function getInternationalBankAccountNumber(): ?string
{
return $this->internationalBankAccountNumber;
}
public function setInternationalBankAccountNumber(?string $internationalBankAccountNumber): self
{
$this->internationalBankAccountNumber = $internationalBankAccountNumber;
return $this;
}
public function getBankAdress(): ?string
{
return $this->bankAdress;
}
public function setBankAdress(?string $bankAdress): self
{
$this->bankAdress = $bankAdress;
return $this;
}
public function getBankCity(): ?string
{
return $this->bankCity;
}
public function setBankCity(?string $bankCity): self
{
$this->bankCity = $bankCity;
return $this;
}
public function getBankPostalCode(): ?int
{
return $this->bankPostalCode;
}
public function setBankPostalCode(?int $bankPostalCode): self
{
$this->bankPostalCode = $bankPostalCode;
return $this;
}
public function getBankCountry(): ?string
{
return $this->bankCountry;
}
public function setBankCountry(?string $bankCountry): self
{
$this->bankCountry = $bankCountry;
return $this;
}
/**
* @return Collection|MangopayCard[]
*/
public function getMangopayCards(): Collection
{
return $this->mangopayCards;
}
public function addMangopayCard(MangopayCard $mangopayCard): self
{
if (!$this->mangopayCards->contains($mangopayCard)) {
$this->mangopayCards[] = $mangopayCard;
$mangopayCard->setIdBankUser($this);
}
return $this;
}
public function removeMangopayCard(MangopayCard $mangopayCard): self
{
if ($this->mangopayCards->contains($mangopayCard)) {
$this->mangopayCards->removeElement($mangopayCard);
// set the owning side to null (unless already changed)
if ($mangopayCard->getIdBankUser() === $this) {
$mangopayCard->setIdBankUser(null);
}
}
return $this;
}
/**
* @return Collection|MangopayBankaccount[]
*/
public function getMangopayBankaccounts(): Collection
{
return $this->mangopayBankaccounts;
}
public function addMangopayBankaccount(MangopayBankaccount $mangopayBankaccount): self
{
if (!$this->mangopayBankaccounts->contains($mangopayBankaccount)) {
$this->mangopayBankaccounts[] = $mangopayBankaccount;
$mangopayBankaccount->setIdBankInfo($this);
}
return $this;
}
public function removeMangopayBankaccount(MangopayBankaccount $mangopayBankaccount): self
{
if ($this->mangopayBankaccounts->contains($mangopayBankaccount)) {
$this->mangopayBankaccounts->removeElement($mangopayBankaccount);
// set the owning side to null (unless already changed)
if ($mangopayBankaccount->getIdBankInfo() === $this) {
$mangopayBankaccount->setIdBankInfo(null);
}
}
return $this;
}
/**
* @return Collection|MangopayWallet[]
*/
public function getMangopayWallets(): Collection
{
return $this->mangopayWallets;
}
public function addMangopayWallet(MangopayWallet $mangopayWallet): self
{
if (!$this->mangopayWallets->contains($mangopayWallet)) {
$this->mangopayWallets[] = $mangopayWallet;
$mangopayWallet->setIdBankInfo($this);
}
return $this;
}
public function removeMangopayWallet(MangopayWallet $mangopayWallet): self
{
if ($this->mangopayWallets->contains($mangopayWallet)) {
$this->mangopayWallets->removeElement($mangopayWallet);
// set the owning side to null (unless already changed)
if ($mangopayWallet->getIdBankInfo() === $this) {
$mangopayWallet->setIdBankInfo(null);
}
}
return $this;
}
/**
* @return Collection|MangopayKycDocument[]
*/
public function getMangopayKycDocuments(): Collection
{
return $this->mangopayKycDocuments;
}
public function addMangopayKycDocument(MangopayKycDocument $mangopayKycDocument): self
{
if (!$this->mangopayKycDocuments->contains($mangopayKycDocument)) {
$this->mangopayKycDocuments[] = $mangopayKycDocument;
$mangopayKycDocument->setIdBankInfo($this);
}
return $this;
}
public function removeMangopayKycDocument(MangopayKycDocument $mangopayKycDocument): self
{
if ($this->mangopayKycDocuments->contains($mangopayKycDocument)) {
$this->mangopayKycDocuments->removeElement($mangopayKycDocument);
// set the owning side to null (unless already changed)
if ($mangopayKycDocument->getIdBankInfo() === $this) {
$mangopayKycDocument->setIdBankInfo(null);
}
}
return $this;
}
/**
* @return Collection|MangopayUboDeclaration[]
*/
public function getMangopayUboDeclarations(): Collection
{
return $this->mangopayUboDeclarations;
}
public function addMangopayUboDeclaration(MangopayUboDeclaration $mangopayUboDeclaration): self
{
if (!$this->mangopayUboDeclarations->contains($mangopayUboDeclaration)) {
$this->mangopayUboDeclarations[] = $mangopayUboDeclaration;
$mangopayUboDeclaration->setIdBankInfo($this);
}
return $this;
}
public function removeMangopayUboDeclaration(MangopayUboDeclaration $mangopayUboDeclaration): self
{
if ($this->mangopayUboDeclarations->contains($mangopayUboDeclaration)) {
$this->mangopayUboDeclarations->removeElement($mangopayUboDeclaration);
// set the owning side to null (unless already changed)
if ($mangopayUboDeclaration->getIdBankInfo() === $this) {
$mangopayUboDeclaration->setIdBankInfo(null);
}
}
return $this;
}
/**
* @return Collection|MangopayRepudiation[]
*/
public function getMangopayRepudiations(): Collection
{
return $this->mangopayRepudiations;
}
public function addMangopayRepudiation(MangopayRepudiation $mangopayRepudiation): self
{
if (!$this->mangopayRepudiations->contains($mangopayRepudiation)) {
$this->mangopayRepudiations[] = $mangopayRepudiation;
$mangopayRepudiation->setIdBankInfo($this);
}
return $this;
}
public function removeMangopayRepudiation(MangopayRepudiation $mangopayRepudiation): self
{
if ($this->mangopayRepudiations->contains($mangopayRepudiation)) {
$this->mangopayRepudiations->removeElement($mangopayRepudiation);
// set the owning side to null (unless already changed)
if ($mangopayRepudiation->getIdBankInfo() === $this) {
$mangopayRepudiation->setIdBankInfo(null);
}
}
return $this;
}
/**
* @return Collection|MangopayTransfer[]
*/
public function getMangopayTransfers(): Collection
{
return $this->mangopayTransfers;
}
public function addMangopayTransfer(MangopayTransfer $mangopayTransfer): self
{
if (!$this->mangopayTransfers->contains($mangopayTransfer)) {
$this->mangopayTransfers[] = $mangopayTransfer;
$mangopayTransfer->setIdBankInfo($this);
}
return $this;
}
public function removeMangopayTransfer(MangopayTransfer $mangopayTransfer): self
{
if ($this->mangopayTransfers->contains($mangopayTransfer)) {
$this->mangopayTransfers->removeElement($mangopayTransfer);
// set the owning side to null (unless already changed)
if ($mangopayTransfer->getIdBankInfo() === $this) {
$mangopayTransfer->setIdBankInfo(null);
}
}
return $this;
}
/**
* @return Collection|MangopayPayin[]
*/
public function getMangopayPayerPayins(): Collection
{
return $this->mangopayPayerPayins;
}
public function addMangopayPayerPayin(MangopayPayin $mangopayPayerPayin): self
{
if (!$this->mangopayPayerPayins->contains($mangopayPayerPayin)) {
$this->mangopayPayerPayins[] = $mangopayPayerPayin;
$mangopayPayerPayin->setIdPayer($this);
}
return $this;
}
public function removeMangopayPayerPayin(MangopayPayin $mangopayPayerPayin): self
{
if ($this->mangopayPayerPayins->contains($mangopayPayerPayin)) {
$this->mangopayPayerPayins->removeElement($mangopayPayerPayin);
// set the owning side to null (unless already changed)
if ($mangopayPayerPayin->getIdPayer() === $this) {
$mangopayPayerPayin->setIdPayer(null);
}
}
return $this;
}
/**
* @return Collection|MangopayPayin[]
*/
public function getMangopayCollectorPayins(): Collection
{
return $this->mangopayCollectorPayins;
}
public function addMangopayCollectorPayin(MangopayPayin $mangopayCollectorPayin): self
{
if (!$this->mangopayCollectorPayins->contains($mangopayCollectorPayin)) {
$this->mangopayCollectorPayins[] = $mangopayCollectorPayin;
$mangopayCollectorPayin->setIdCollector($this);
}
return $this;
}
public function removeMangopayCollectorPayin(MangopayPayin $mangopayCollectorPayin): self
{
if ($this->mangopayCollectorPayins->contains($mangopayCollectorPayin)) {
$this->mangopayCollectorPayins->removeElement($mangopayCollectorPayin);
// set the owning side to null (unless already changed)
if ($mangopayCollectorPayin->getIdCollector() === $this) {
$mangopayCollectorPayin->setIdCollector(null);
}
}
return $this;
}
/**
* @return Collection|MangopayPayout[]
*/
public function getMangopayPayouts(): Collection
{
return $this->mangopayPayouts;
}
public function addMangopayPayout(MangopayPayout $mangopayPayout): self
{
if (!$this->mangopayPayouts->contains($mangopayPayout)) {
$this->mangopayPayouts[] = $mangopayPayout;
$mangopayPayout->setIdBankInfo($this);
}
return $this;
}
public function removeMangopayPayout(MangopayPayout $mangopayPayout): self
{
if ($this->mangopayPayouts->contains($mangopayPayout)) {
$this->mangopayPayouts->removeElement($mangopayPayout);
// set the owning side to null (unless already changed)
if ($mangopayPayout->getIdBankInfo() === $this) {
$mangopayPayout->setIdBankInfo(null);
}
}
return $this;
}
/**
* @return Collection|MangopayRefund[]
*/
public function getMangopayRefunds(): Collection
{
return $this->mangopayRefunds;
}
public function addMangopayRefund(MangopayRefund $mangopayRefund): self
{
if (!$this->mangopayRefunds->contains($mangopayRefund)) {
$this->mangopayRefunds[] = $mangopayRefund;
$mangopayRefund->setIdBankInfo($this);
}
return $this;
}
public function removeMangopayRefund(MangopayRefund $mangopayRefund): self
{
if ($this->mangopayRefunds->contains($mangopayRefund)) {
$this->mangopayRefunds->removeElement($mangopayRefund);
// set the owning side to null (unless already changed)
if ($mangopayRefund->getIdBankInfo() === $this) {
$mangopayRefund->setIdBankInfo(null);
}
}
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
/**
* @return Collection|KycFile[]
*/
public function getKycFiles(): Collection
{
return $this->kycFiles;
}
public function addKycFile(KycFile $kycFile): self
{
if (!$this->kycFiles->contains($kycFile)) {
$this->kycFiles[] = $kycFile;
$kycFile->setIdUser($this);
}
return $this;
}
public function removeKycFile(KycFile $kycFile): self
{
if ($this->kycFiles->contains($kycFile)) {
$this->kycFiles->removeElement($kycFile);
// set the owning side to null (unless already changed)
if ($kycFile->getIdUser() === $this) {
$kycFile->setIdUser(null);
}
}
return $this;
}
}