Chapter 14. Creating Documentation Using the Reflection Classes

In Chapter 4, I introduced a simple class called DirectoryItems. You may remember what it does, but you probably can't remember the specific methods. With a user-defined class, looking up forgotten methods usually means rooting through the class definition file. This can take a long time, especially for large classes. For an internal class you can go to http://php.net to look up the information you need. But there are more than 100 internal classes and interfaces, and their documentation is scattered throughout the PHP site. Wouldn't it be useful to have a central repository of documentation for all classes?

Finding documentation is one problem, but the quality of documentation ...

Get Object-Oriented PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.