Skip to content

Commit

Permalink
update: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Oct 13, 2023
1 parent 0b1c2df commit 0ad1762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Support/Facades/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/Support/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public function response(): JsonResponse
});
}

/**
* Get formatted data.
*
* @return array|null
*/
public function get(): ?array
{
return $this->data;
Expand Down

0 comments on commit 0ad1762

Please sign in to comment.