<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* BankAccount
*
* @ORM\Table(name="bank_account")
* @ORM\Entity
*/
class BankAccount
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255, nullable=false)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="label", type="string", length=500, nullable=false)
*/
private $label;
/**
* @var string
*
* @ORM\Column(name="iban", type="string", length=255, nullable=false)
*/
private $iban;
/**
* @var string
*
* @ORM\Column(name="ics", type="string", length=255, nullable=false)
*/
private $ics;
/**
* @var string
*
* @ORM\Column(name="bic", type="string", length=255, nullable=false)
*/
private $bic;
/**
* @var string
*
* @ORM\Column(name="accountNumber", type="string", nullable=true)
*/
private $accountNumber;
/**
* @var string
*
* @ORM\Column(name="diary", type="string", nullable=true)
*/
private $diary;
/**
* @var bool
*
* @ORM\Column(name="status", type="boolean", nullable=false)
*/
private $status;
/**
* @var Company
*
* @ORM\ManyToOne(targetEntity="Company", inversedBy="bankAccounts")
* @ORM\JoinColumn(name="company_id", referencedColumnName="id", onDelete="SET NULL")
*/
private $company;
public function __toString()
{
return $this->name;
}
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): self
{
$this->label = $label;
return $this;
}
public function getIban(): ?string
{
return $this->iban;
}
public function setIban(string $iban): self
{
$this->iban = $iban;
return $this;
}
public function getIcs(): ?string
{
return $this->ics;
}
public function setIcs(string $ics): self
{
$this->ics = $ics;
return $this;
}
public function getBic(): ?string
{
return $this->bic;
}
public function setBic(string $bic): self
{
$this->bic = $bic;
return $this;
}
public function getStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): self
{
$this->status = $status;
return $this;
}
/**
* @return Company
*/
public function getCompany()
{
return $this->company;
}
/**
* @param Company $company
*/
public function setCompany(Company $company): void
{
$this->company = $company;
}
/**
* @return string
*/
public function getAccountNumber(): ?string
{
return $this->accountNumber;
}
/**
* @param string $accountNumber
*/
public function setAccountNumber(string $accountNumber): void
{
$this->accountNumber = $accountNumber;
}
/**
* @return string
*/
public function getDiary(): ?string
{
return $this->diary;
}
/**
* @param string $diary
*/
public function setDiary(string $diary): void
{
$this->diary = $diary;
}
}