Feat: Implement entities for user and teamer, finalize login process
This commit is contained in:
1 parent
3739decab8
commit
35ca61d21b
27 files changed
+1008
-442
No files matched your search
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Embeddable;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Embeddable]
|
||||
class BankAccount
|
||||
{
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?string $iban = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?string $bic = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?string $bank = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?string $holder = null;
|
||||
|
||||
public function getIban(bool $obfuscated = false): ?string
|
||||
{
|
||||
if (false === $obfuscated) {
|
||||
return $this->iban;
|
||||
}
|
||||
|
||||
if (null === $iban = $this->getIban()) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return sprintf('%s*****%s', substr($iban, 0, 6), substr($iban, -4));
|
||||
}
|
||||
|
||||
public function setIban(?string $iban): static
|
||||
{
|
||||
$this->iban = $iban;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBic(): ?string
|
||||
{
|
||||
return $this->bic;
|
||||
}
|
||||
|
||||
public function setBic(?string $bic): static
|
||||
{
|
||||
$this->bic = $bic;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBank(): ?string
|
||||
{
|
||||
return $this->bank;
|
||||
}
|
||||
|
||||
public function setBank(?string $bank): static
|
||||
{
|
||||
$this->bank = $bank;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getHolder(): ?string
|
||||
{
|
||||
return $this->holder;
|
||||
}
|
||||
|
||||
public function setHolder(?string $holder): static
|
||||
{
|
||||
$this->holder = $holder;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user