Skip to content

Commit

Permalink
Payment: Maturity date renamed to due date
Browse files Browse the repository at this point in the history
  • Loading branch information
AntikCz committed Mar 2, 2016
1 parent ff28638 commit c4e5cc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/Data/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Payment {
protected $invoiceNumber;

/** @var \DateTime */
protected $maturityDate;
protected $dueDate;

/** @var string */
protected $variableSymbol;
Expand Down Expand Up @@ -203,16 +203,16 @@ public function setInvoiceNumber($invoiceNumber) {
/**
* @return \DateTime
*/
public function getMaturityDate() {
return $this->maturityDate;
public function getDueDate() {
return $this->dueDate;
}

/**
* @param \DateTime $maturityDate
* @param \DateTime $dueDate
* @return self
*/
public function setMaturityDate(\DateTime $maturityDate) {
$this->maturityDate = $maturityDate;
public function setDueDate(\DateTime $dueDate) {
$this->dueDate = $dueDate;

return $this;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ protected function itemsHeader() {
protected function paymentInformation() {
$multiplier = 0;

if ($this->payment->getMaturityDate()) {
if ($this->payment->getDueDate()) {
$this->image->text('', 1445, 710 + ($multiplier * 55), function (Font $font) {
$font->color($this->template->getPrimaryColor());
$font->file($this->template->getIconFont());
Expand All @@ -667,7 +667,7 @@ protected function paymentInformation() {
$font->size(27);
$font->file($this->template->getFont());
});
$this->image->text($this->payment->getMaturityDate()->format('d/m/Y'), 1850, 705 + ($multiplier * 55), function (Font $font) {
$this->image->text($this->payment->getDueDate()->format('d/m/Y'), 1850, 705 + ($multiplier * 55), function (Font $font) {
$font->size(27);
$font->file($this->template->getFont());
$font->color($this->template->getFontColor());
Expand Down

0 comments on commit c4e5cc9

Please sign in to comment.