for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pronamic\WordPress\Pay\Gateways\Ingenico;
/**
* Title: Ingenico error
* Description:
* Copyright: 2005-2021 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
* @version 2.0.0
* @since 1.0.0
*/
class Error {
* Error code
* @var string
private $code;
* Error explanation
private $explanation;
* Construct and initialize an Ogone error
* @param string $code
* @param string $explanation
public function __construct( $code, $explanation ) {
$this->code = $code;
$this->explanation = $explanation;
}
// @todo getters and setters
* Create an string representation of this object
* @return string
public function __toString() {
return $this->code . ' ' . $this->explanation;