Doctrine 2 annotations and "var"
Could someone tell me whats the meaning of "@var" in annotations configuration?
For example:
/**
* @Col开发者_开发技巧umn(type="string", length=20, unique=TRUE)
* @var string
*/
protected $login;
It tells you what type of variable is it. Whether it's integer, string or an object, for example. It's used for auto-documentating processes
This is an annotation used for automatic documentation generation with phpDocumentor. For @var see their documentation.
精彩评论