Skip to content

Commit

Permalink
Create NamedAccount.php
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangums authored Nov 12, 2024
1 parent ba4319d commit 9dc9967
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/DTO/NamedAccount.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

declare(strict_types=1);

namespace Genkgo\Camt\DTO;

use Genkgo\Camt\Iban;

class NamedAccount extends Account
{
private Iban $iban;

private string $name;

public function __construct(Iban $iban, string $name)
{
$this->iban = $iban;
$this->name = $name;
}

public function getIban(): Iban
{
return $this->iban;
}

public function getName(): string
{
return $this->name;
}

/**
* @inheritDoc
*/
public function getIdentification(): string
{
return (string) $this->iban;
}
}

0 comments on commit 9dc9967

Please sign in to comment.