File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,26 @@ static function deleteUser(string $uuid)
9292 }
9393
9494 /**
95- * @param int $uuid
95+ * @param string $uuid
9696 * @return array|null
9797 */
9898 static function getUser (string $ uuid ): ?array
9999 {
100100 return DB ::single ('SELECT * FROM ' . $ _ENV ['DB_PREFIX ' ] . 'user WHERE uuid = ? ' , [$ uuid ]);
101101 }
102102
103+ /**
104+ * @return array|null
105+ */
106+ static function getUsers (): ?array
107+ {
108+ return DB ::single ('SELECT * FROM ' . $ _ENV ['DB_PREFIX ' ] . 'user ' , []);
109+ }
110+
111+ /**
112+ * @param string $email
113+ * @return array|null
114+ */
103115 static function getUserByEmail (string $ email ): ?array
104116 {
105117 return DB ::single ('SELECT * FROM ' . $ _ENV ['DB_PREFIX ' ] . 'user WHERE email = ? ' , [$ email ]);
You can’t perform that action at this time.
0 commit comments