Files
piratepoet/mailpoet/lib/Automation/Engine/API/ErrorResponse.php
Jan Jakes da2621230d Move automation engine code under "Engine" namespace
This is to separate the engine itself from "integrations" that will be
built on top of the engine.

[MAILPOET-4136]
2022-03-14 09:36:21 +01:00

19 lines
375 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\Automation\Engine\API;
class ErrorResponse extends Response {
public function __construct(
int $status,
string $message,
string $code
) {
parent::__construct(null, $status);
$this->set_data([
'code' => $code,
'message' => $message,
'data' => ['status' => $status],
]);
}
}