mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-26 01:14:19 +08:00
25 lines
450 B
PHP
25 lines
450 B
PHP
<?php
|
|
|
|
class WP_Error {
|
|
private $code;
|
|
private $message;
|
|
private $data;
|
|
|
|
public function __construct( $code = '', $message = '', $data = '' ) {
|
|
$this->code = $code;
|
|
$this->message = $message;
|
|
$this->data = $data;
|
|
}
|
|
|
|
public function get_error_code() {
|
|
return $this->code;
|
|
}
|
|
|
|
public function get_error_message( $code = '' ) {
|
|
return $this->message;
|
|
}
|
|
|
|
public function get_error_data( $code = '' ) {
|
|
return $this->data;
|
|
}
|
|
}
|