From a6fd997c338554da60f44f6200878ae5d944ce99 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 1 Feb 2023 11:38:23 +0900 Subject: [PATCH] docs: add @return --- src/Models/UserModel.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Models/UserModel.php b/src/Models/UserModel.php index 91ed28948..1587b7b9e 100644 --- a/src/Models/UserModel.php +++ b/src/Models/UserModel.php @@ -261,6 +261,8 @@ public function insert($data = null, bool $returnID = true) * @param array|int|string|null $id * @param array|User $data * + * @return true if the update is successful + * * @throws ValidationException */ public function update($id = null, $data = null): bool @@ -301,6 +303,8 @@ public function update($id = null, $data = null): bool * * @param array|User $data * + * @return true if the save is successful + * * @throws ValidationException */ public function save($data): bool