Skip to content

Commit

Permalink
moved constants TX_APPROVED and TX_DECLINED from AbstractResponseData…
Browse files Browse the repository at this point in the history
…Mapper to ResponseDataMapperInterface
  • Loading branch information
nuryagdym committed Dec 10, 2023
1 parent 334300b commit 2c549ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ parameters:
count: 1
path: src/Factory/PosFactory.php

-
message: "#^Access to undefined constant Mews\\\\Pos\\\\DataMapper\\\\ResponseDataMapper\\\\ResponseDataMapperInterface\\:\\:TX_APPROVED\\.$#"
count: 1
path: src/Gateways/AbstractGateway.php

-
message: "#^Parameter \\#2 \\$rawPaymentResponseData of method Mews\\\\Pos\\\\DataMapper\\\\ResponseDataMapper\\\\GarantiPosResponseDataMapper\\:\\:map3DPaymentData\\(\\) expects array\\{Order\\: array\\<string, array\\<string, string\\|null\\>\\|string\\>, Response\\: array\\<string, string\\>, Transaction\\: array\\<string, array\\<string, string\\>\\|string\\>\\}\\|null, array\\<string, mixed\\>\\|null given\\.$#"
count: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@

abstract class AbstractResponseDataMapper implements ResponseDataMapperInterface
{
/** @var string */
public const TX_APPROVED = 'approved';

/** @var string */
public const TX_DECLINED = 'declined';

/** @var string */
public const PROCEDURE_SUCCESS_CODE = '00';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@

interface ResponseDataMapperInterface extends PaymentResponseMapperInterface, NonPaymentResponseMapperInterface
{
/** @var string */
public const TX_APPROVED = 'approved';

/** @var string */
public const TX_DECLINED = 'declined';
}

0 comments on commit 2c549ff

Please sign in to comment.