Skip to content

Commit

Permalink
specify type string for request methods
Browse files Browse the repository at this point in the history
  • Loading branch information
christopheaic committed Jul 27, 2022
1 parent 14c29fc commit 3d6f3b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Message/ConvergeAbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ protected function createResponse($response)
/**
* @return string
*/
protected function getBaseData()
protected function getBaseData() : string
{
$data =
'<ssl_merchant_id>' . $this->getMerchantId() . '</ssl_merchant_id>' .
Expand Down
2 changes: 1 addition & 1 deletion src/Message/ConvergeAuthorizeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ConvergeAuthorizeRequest extends ConvergeAbstractRequest
{
protected $transactionType = 'ccauthonly';

public function getData()
public function getData() : string
{
if ($this->getCard() != null) {
$this->validate('amount', 'card');
Expand Down
2 changes: 1 addition & 1 deletion src/Message/ConvergeGenerateTokenRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ConvergeGenerateTokenRequest extends ConvergeAbstractRequest
{
protected $transactionType = 'ccgettoken';

public function getData()
public function getData() : string
{
$data =
'<ssl_transaction_type>' . $this->transactionType . '</ssl_transaction_type>' .
Expand Down
2 changes: 1 addition & 1 deletion src/Message/ConvergeVoidRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function manageValidate()
$this->validate('transactionReference');
}

public function getData()
public function getData() : string
{
$this->manageValidate();

Expand Down

0 comments on commit 3d6f3b8

Please sign in to comment.