for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/phpviet/omnipay-momo
* @copyright (c) PHP Viet
* @license [MIT](http://www.opensource.org/licenses/MIT)
*/
namespace Omnipay\MoMo\Message;
use Omnipay\Common\Message\AbstractResponse as BaseAbstractResponse;
* @method AbstractRequest getRequest()
*
* @author Vuong Minh <[email protected]>
* @since 1.0.0
abstract class AbstractResponse extends BaseAbstractResponse
{
use Concerns\ResponseProperties;
* {@inheritdoc}
public function isSuccessful(): bool
return '0' === $this->getCode();
}
public function isCancelled(): bool
return '49' === $this->getCode();
public function getMessage(): ?string
return $this->data['message'] ?? null;