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.
25 lines
552 B
PHP
25 lines
552 B
PHP
<?php
|
|
|
|
namespace Omnipay\Inforbank\Message;
|
|
|
|
use Omnipay\Common\Message\AbstractResponse as BaseAbstractResponse;
|
|
use Omnipay\Common\Message\RequestInterface;
|
|
|
|
abstract class AbstractResponse extends BaseAbstractResponse
|
|
{
|
|
protected $error;
|
|
|
|
public function __construct(RequestInterface $request, $data)
|
|
{
|
|
parent::__construct($request, $data);
|
|
if (!$this->data['success']) {
|
|
$this->error = (string) $this->data['error'];
|
|
}
|
|
}
|
|
|
|
public function getError()
|
|
{
|
|
return $this->error;
|
|
}
|
|
}
|