-
Notifications
You must be signed in to change notification settings - Fork 45
Add description line glue property (#481) #483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,14 @@ class SEPAAccount | |
/** @var string|null */ | ||
protected $blz; | ||
|
||
/** | ||
* Determines how single lines in transaction descriptions are joined, see #481. | ||
* Defaults to an empty string for maximum compatibility but some banks implicitly assume line breaks for this. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd say "backwards compatibility" (with previous versions of this library) rather than "maximum compatibility" (with the largest number of banks). |
||
* This is not provided by the bank and needs to be set manually. | ||
* @var string|null | ||
*/ | ||
protected $transactionDescriptionLineGlue; | ||
|
||
public function getIban(): ?string | ||
{ | ||
return $this->iban; | ||
|
@@ -94,4 +102,18 @@ public function setBlz(?string $blz) | |
|
||
return $this; | ||
} | ||
|
||
public function getTransactionDescriptionLineGlue(): ?string | ||
{ | ||
return $this->transactionDescriptionLineGlue; | ||
} | ||
|
||
/** | ||
* @return $this | ||
*/ | ||
public function setTransactionDescriptionLineGlue($transactionDescriptionLineGlue) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add type for the argument? |
||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I left it out to match the other getters in this file. |
||
$this->transactionDescriptionLineGlue = $transactionDescriptionLineGlue; | ||
return $this; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should somehow refer to MT940 / the fact that this is about transaction statements for this account.