Fix undefined classes, constants and methods

This pull request fixes undefined classes in phpDoc and one undefined class constant. In addition, the visibility for some methods was increased to `protected` as those methods were called with `static`.