Make use of late static binding in the User::getToCheck method

Replaced get_class() to make use of late static binding