From df783376d2b3bdd8fe5e0e558fa781f40babd7f3 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 22 Apr 2025 02:56:09 +0500 Subject: feat: users --- src/user.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/user.php (limited to 'src/user.php') diff --git a/src/user.php b/src/user.php new file mode 100644 index 0000000..c09c5d5 --- /dev/null +++ b/src/user.php @@ -0,0 +1,36 @@ +id = $row["id"]; + $this->username = $row["username"]; + $this->joined_at = strtotime($row["joined_at"]); + $this->last_active_at = strtotime($row["last_active_at"]); + } + + function id() + { + return $this->id; + } + + function username() + { + return $this->username; + } + + function joined_at() + { + return $this->joined_at; + } + + function last_active_at() + { + return $this->last_active_at; + } +} \ No newline at end of file -- cgit v1.2.3