Skip to content

Commit 0ad1762

Browse files
committed
update: comment
1 parent 0b1c2df commit 0ad1762

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Support/Facades/Format.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
/**
2323
* @method static \Jiannei\Response\Laravel\Support\Format data(mixed $data = null, string $message = '', int|\BackedEnum $code = 200, $error = null)
24+
* @method static array|null get()
2425
* @method static array paginator(AbstractPaginator|AbstractCursorPaginator|Paginator $resource)
2526
* @method static array resourceCollection(ResourceCollection $collection)
2627
* @method static array jsonResource(JsonResource $resource)

src/Support/Format.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ public function response(): JsonResponse
4545
});
4646
}
4747

48+
/**
49+
* Get formatted data.
50+
*
51+
* @return array|null
52+
*/
4853
public function get(): ?array
4954
{
5055
return $this->data;

0 commit comments

Comments
 (0)