I have a class in PHP which only has static methods. Is it appropriate to prevent this class from being instantiated, and if so how should it be done? (by "appropriate", I mean intended usage balanced with pros and/or cons.)
AFAIK, creating an instance of it wouldn't hurt or cause any problems aside from the fact that it is completely pointless.
Also, AFAIK, the way this can be accomplished is by making the constructor private or making the class abstract. Making the constructor private seems hacky since it's not that I want the constructor to be used only from within the class, it's that I want construction itself to be impossible. And making it abstract also seems wrong and hacky since it's intended for direct use.