App\Domains\Http\Jobs\RespondWithJsonErrorJob::__construct PHP Method

__construct() public method

public __construct ( $message = 'An error occurred', $code = 400, $status = 400, $headers = [], $options )
    public function __construct($message = 'An error occurred', $code = 400, $status = 400, $headers = [], $options = 0)
    {
        $this->content = ['status' => $status, 'error' => ['code' => $code, 'message' => $message]];
        $this->status = $status;
        $this->headers = $headers;
        $this->options = $options;
    }
RespondWithJsonErrorJob