Skip to content

Commit

Permalink
fix inconsistency with other Account class
Browse files Browse the repository at this point in the history
  • Loading branch information
wimverstuyf committed Nov 25, 2017
1 parent f3c616d commit 01439b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Statements/AccountOtherParty.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ class AccountOtherParty
/** @var string */
private $number;
/** @var string */
private $currency;
private $currencyCode;

public function __construct(string $name, string $bic, string $number, string $currency)
public function __construct(string $name, string $bic, string $number, string $currencyCode)
{
$this->name = $name;
$this->bic = $bic;
$this->number = $number;
$this->currency = $currency;
$this->currencyCode = $currencyCode;
}

public function getName(): string
Expand All @@ -41,8 +41,8 @@ public function getNumber(): string
return $this->number;
}

public function getCurrency(): string
public function getCurrencyCode(): string
{
return $this->currency;
return $this->currencyCode;
}
}
2 changes: 1 addition & 1 deletion tests/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function testSample6()
$this->assertEquals("BVBA.BAKKER PIET", $transaction1->getAccount()->getName());
$this->assertEquals("GEBCEEBB", $transaction1->getAccount()->getBic());
$this->assertEquals("BE54805480215856", $transaction1->getAccount()->getNumber());
$this->assertEquals("EUR", $transaction1->getAccount()->getCurrency());
$this->assertEquals("EUR", $transaction1->getAccount()->getCurrencyCode());

$this->assertEquals("54875", $transaction2->getMessage());
$this->assertEquals("112455446812", $transaction2->getStructuredMessage());
Expand Down

0 comments on commit 01439b4

Please sign in to comment.