Files
piratepoet/mailpoet/lib/Automation/API/ErrorResponse.php
2022-02-21 09:56:26 +01:00

19 lines
368 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\Automation\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],
]);
}
}