From bc6c204dc9102bce481ab45fb6a180bf037e71ac Mon Sep 17 00:00:00 2001 From: Jelle van Oosterbosch Date: Tue, 19 Jan 2021 14:52:54 +0100 Subject: [PATCH] Allow returning of the status code in the TransactionStatusResponse class --- src/Message/TransactionStatusResponse.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Message/TransactionStatusResponse.php b/src/Message/TransactionStatusResponse.php index 1a36e1f..6c7ad2d 100755 --- a/src/Message/TransactionStatusResponse.php +++ b/src/Message/TransactionStatusResponse.php @@ -29,6 +29,14 @@ public function __construct(RequestInterface $request, $data, int $statusCode) $this->statusCode = $statusCode; } + /** + * {@inheritdoc} + */ + public function getCode() + { + return $this->statusCode; + } + /** * {@inheritdoc} */