protected function getUserInfo($username)
    {
        if (!isset(self::$users[$username])) return null;
    
        $user = compact('username') + self::$users[$username];
        unset($user['password']);
        
        return $user;
    }
protected function getUserInfo($username)
    {
        if (!isset(self::$users[$username])) return null;
    
        $user = compact('username') + self::$users[$username];
        unset($user['password']);
        
        return $user;
    }
protected function getUserInfo ( $ username ) { if ( ! isset ( self :: $ users [ $ username ] ) ) return null ; $ user = compact ( 'username' ) + self :: $ users [ $ username ] ; unset ( $ user [ 'password' ] ) ; return $ user ; }
Get the user information

@return array
Get the user information