Files
php_assessment_2/wp-content/plugins/mailpoet/lib/API/REST/Response.php
T

18 lines
304 B
PHP
Raw Normal View History

2025-02-05 23:15:46 +01:00
<?php declare(strict_types = 1);
namespace MailPoet\API\REST;
if (!defined('ABSPATH')) exit;
use WP_REST_Response;
class Response extends WP_REST_Response {
public function __construct(
array $data = null,
int $status = 200
) {
parent::__construct(['data' => $data], $status);
}
}