메소드 |
설명 |
|
__construct ( SuccessResponseBuilder $successResponse, ErrorResponseBuilder $errorResponse ) |
Constructor. |
|
error ( string $errorCode = null, integer $statusCode = null, mixed $message = null ) : Illuminate\Http\JsonResponse |
Generate an error JSON response. |
|
success ( mixed | null $data = null, integer | null $statusCode = null, array $meta = [] ) : Illuminate\Http\JsonResponse |
Generate a successful JSON response. |
|
transform ( mixed | null $data = null, callable | string | null $transformer = null ) : SuccessResponseBuilder |
Transform the data and return a success response builder. |
|