What do I understand that
Method Tags
@property and @method are allowed only in the docblock class level. Both of these tags give a hint to the developer about the availability of methods / properties implemented using the megalogical methods __call($method,$params) , __get($var) and __set($var,$val) .
In yii, you do not need to explicitly define getter / setter methods for class attributes. Thus, attributes are access through 'get'.$attributeName eg
class User extends CModel{ var $firstName; } $u= new User(); $username=$u->getFirstName(); $u->setFirstName('Testuser');
In the Yii context, the above code is the true bcz of the magic method 'get'.$attributeName AttributeName for call attributes.
Since @property and @method are levels of the @tags class, your only bet is to add them to the class, and Ctrl + click will send focus to the corresponding docblock class
source share