From 0ad1762a38e37e34acc2dc6920a17b477070e8a1 Mon Sep 17 00:00:00 2001 From: jiannei Date: Sat, 14 Oct 2023 04:15:19 +0800 Subject: [PATCH] update: comment --- src/Support/Facades/Format.php | 1 + src/Support/Format.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/Support/Facades/Format.php b/src/Support/Facades/Format.php index a7e4d45..f0f2d06 100644 --- a/src/Support/Facades/Format.php +++ b/src/Support/Facades/Format.php @@ -21,6 +21,7 @@ /** * @method static \Jiannei\Response\Laravel\Support\Format data(mixed $data = null, string $message = '', int|\BackedEnum $code = 200, $error = null) + * @method static array|null get() * @method static array paginator(AbstractPaginator|AbstractCursorPaginator|Paginator $resource) * @method static array resourceCollection(ResourceCollection $collection) * @method static array jsonResource(JsonResource $resource) diff --git a/src/Support/Format.php b/src/Support/Format.php index 53615a5..97e42dc 100644 --- a/src/Support/Format.php +++ b/src/Support/Format.php @@ -45,6 +45,11 @@ public function response(): JsonResponse }); } + /** + * Get formatted data. + * + * @return array|null + */ public function get(): ?array { return $this->data;