From 39c6cf07ce55b4397e1cd314b104bfb96c2b44da Mon Sep 17 00:00:00 2001 From: Evgeniy Yurchenko <46298617+JeRabix@users.noreply.github.com> Date: Mon, 9 Dec 2024 18:47:11 +0300 Subject: [PATCH] chore: ResourceModelQuery.php --- src/Traits/Resource/ResourceModelQuery.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Traits/Resource/ResourceModelQuery.php b/src/Traits/Resource/ResourceModelQuery.php index 4ab5f8679..18fa92276 100644 --- a/src/Traits/Resource/ResourceModelQuery.php +++ b/src/Traits/Resource/ResourceModelQuery.php @@ -27,6 +27,7 @@ */ trait ResourceModelQuery { + /** @var TModel|null $item */ protected ?Model $item = null; protected array $with = []; @@ -102,6 +103,9 @@ protected function resolveItemQuery(): Builder return $this->getModel()->newQuery(); } + /** + * @return TModel|null + */ public function getItem(): ?Model { if (! is_null($this->item)) {