We can easily generate comments for the variables/functions/types we define in Zend Studio. We just need to mark with our mouse the variable/function/type we want to comment and press CTRL + Shift + J.
The Visitor Design Pattern
The visitor design pattern allows us to add operations to objects that already exist without modifying their classes and without extending them.