From 60fe718e6ae9585ea1487e83757b7f58c91bfe07 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Thu, 9 Jan 2025 00:33:23 +0700 Subject: [PATCH] fix: add docblock to fix analyse for blog api repo --- src/Http/Responses/Base/BaseHttpResponse.php | 10 ++++++++++ src/Models/Post.php | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/src/Http/Responses/Base/BaseHttpResponse.php b/src/Http/Responses/Base/BaseHttpResponse.php index 3bcccde..8db6658 100644 --- a/src/Http/Responses/Base/BaseHttpResponse.php +++ b/src/Http/Responses/Base/BaseHttpResponse.php @@ -13,6 +13,16 @@ * @package CSlant\Blog\Core\Http\Responses\Base * * @method self setData(mixed $data) + * @method self with(array $with) + * @method static self make() + * @method self withInput() + * @method self withError() + * @method self withMessage(string $message) + * @method self withPreviousUrl(string $url) + * @method self withNextUrl(string $url) + * @method self setError(bool $error = true) + * @method self setCode(int $code) + * * @method JsonResource|JsonResponse|RedirectResponse|self toApiResponse() */ class BaseHttpResponse extends BotbleBaseHttpResponse diff --git a/src/Models/Post.php b/src/Models/Post.php index cf13620..ba8b88f 100644 --- a/src/Models/Post.php +++ b/src/Models/Post.php @@ -32,6 +32,10 @@ * @property string $author * * @method static Builder|Post query() + * @method static Builder|Post with($relations) + * @method static Builder|Post where($column, $operator = null, $value = null, $boolean = 'and') + * @method static Post findOrFail($id) + * @method static Post create($data) * * @mixin BasePost */