Skip to content

Commit

Permalink
Merge pull request #102 from paynl/feature/details-docs
Browse files Browse the repository at this point in the history
Fix docs variables
  • Loading branch information
woutse authored Apr 8, 2020
2 parents 487d639 + 819314f commit 8c5405f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/Result/Transaction/Details.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Details extends Result
{

/**
* @return string Full array paymentDetails
* @return array Full array paymentDetails
*/
public function getPaymentDetails()
{
Expand Down Expand Up @@ -117,7 +117,7 @@ public function getCompletedIpAddress()
}

/**
* @return string The amount
* @return array The amount value and amount currency
*/
public function getAmount()
{
Expand All @@ -142,7 +142,7 @@ public function getAmountCurrency()


/**
* @return string The amountOriginal
* @return array The amountOriginal value and amountOriginal currency
*/
public function getAmountOriginal()
{
Expand All @@ -166,7 +166,7 @@ public function getAmountOriginalCurrency()
}

/**
* @return string The amountPaidOriginal
* @return array The amountPaidOriginal value and amountPaidOriginal currency
*/
public function getAmountPaidOriginal()
{
Expand All @@ -190,7 +190,7 @@ public function getAmountPaidOriginalCurrency()
}

/**
* @return string The amountPaid
* @return array The amountPaid value and amountPaid currency
*/
public function getAmountPaid()
{
Expand All @@ -214,7 +214,7 @@ public function getAmountPaidCurrency()
}

/**
* @return string The amountRefundOriginal
* @return array The amountRefundOriginal value and amountRefundOriginal currency
*/
public function getAmountRefundOriginal()
{
Expand All @@ -238,7 +238,7 @@ public function getAmountRefundOriginalCurrency()
}

/**
* @return string The amountRefund
* @return array The amountRefund value and amountRefund currency
*/
public function getAmountRefund()
{
Expand All @@ -262,7 +262,7 @@ public function getAmountRefundCurrency()
}

/**
* @return TransactionDetails[]
* @return array class TransactionDetails[]
*/
public function getTransactionDetails()
{
Expand Down
3 changes: 2 additions & 1 deletion src/Result/Transaction/TransactionDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ public function getIdentifierHash()
}

/**
* @return string The amount
* @return array The amount value and amount currency
*/
public function getAmount()

{
return (isset($this->data['amount'])) ? $this->data['amount'] : '';
}
Expand Down

0 comments on commit 8c5405f

Please sign in to comment.