user = $user; $this->db = $db; } public static function expiredEffects() { return Db::getInstance()->execute('delete from users_effects where remaining_time <= ?', strtotime('now')); } public static function userExists($id): bool { return Db::getInstance()->fetchColumn('select count(*) from users where id = ?', $id) > 0; } }