This is to separate the engine itself from "integrations" that will be built on top of the engine. [MAILPOET-4136]
15 lines
284 B
PHP
15 lines
284 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace MailPoet\Automation\Engine\API;
|
|
|
|
use WP_REST_Response;
|
|
|
|
class Response extends WP_REST_Response {
|
|
public function __construct(
|
|
array $data = null,
|
|
int $status = 200
|
|
) {
|
|
parent::__construct(['data' => $data], $status);
|
|
}
|
|
}
|