public function updateUser($id, User $user, $password = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['user' => $user, 'password' => $password], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users/' . $id . '', $parameters);
        $result = new User($result);

        return $result;
    }
public function updateUser($id, User $user, $password = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['user' => $user, 'password' => $password], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users/' . $id . '', $parameters);
        $result = new User($result);

        return $result;
    }
public function updateUser ( $ id , User $ user , $ password = null ) { $ parameters = [ 'query' => [ ] , 'body' => json_encode ( [ 'user' => $ user , 'password' => $ password ] , JSON_UNESCAPED_UNICODE ) , 'headers' => [ ] , ] ; $ result = $ this -> post ( 'v1/accounts/users/' . $ id . '' , $ parameters ) ; $ result = new User ( $ result ) ; return $ result ; }
Update a user Update a user in QBank.

@param  int    $id
@param  User   $user     The user to update
@param  string $password Set a new password for the user, leave blank to leave unchanged
@return User
Update a user Update a user in QBank .