| Current Path : /var/www/html/libraries/omnipay/vendor/omnipay/multisafepay/src/Message/ |
| Current File : /var/www/html/libraries/omnipay/vendor/omnipay/multisafepay/src/Message/AbstractResponse.php |
<?php
namespace Omnipay\MultiSafepay\Message;
use Omnipay\Common\Message\AbstractResponse as BaseAbstractResponse;
/**
* @method mixed|\SimpleXMLElement getData()
*/
abstract class AbstractResponse extends BaseAbstractResponse
{
/**
* {@inheritdoc}
*/
public function getMessage()
{
if (isset($this->data->error)) {
return (string) $this->data->error->description;
}
return null;
}
/**
* {@inheritdoc}
*/
public function getCode()
{
if (isset($this->data->error)) {
return (string) $this->data->error->code;
}
return null;
}
}