Last active
August 31, 2025 23:58
-
-
Save mcsee/2a591a849322e205cdb56da9df35b093 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// @author John Wick | |
// @version 3.14 | |
// @description Service for user operations | |
class UserService { | |
/** | |
* @deprecated | |
* @param int $id | |
* @return string | |
*/ | |
public function userName($id) { | |
// @todo Sanitize input | |
return $this->database->query( | |
"SELECT name FROM users WHERE id = $id"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment