You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
payment/app/Helper/Efps/Result.php

40 lines
683 B
PHTML

2 years ago
<?php
declare(strict_types=1);
namespace App\Helper\Efps;
class Result
{
private $data;
public function __construct($data)
{
$this->data = $data;
}
public function isSuccess()
{
return $this->data['returnCode'] == '0000';
}
public function get($key)
{
return $this->data[$key] ?? null;
}
2 years ago
public function getMessage()
2 years ago
{
2 years ago
return $this->data['returnMsg'];
}
public function getData()
{
$data = $this->data;
unset($data['returnCode']);
unset($data['returnMsg']);
unset($data['nonceStr']);
unset($data['customerCode']);
2 years ago
return $data;
}
}