开发者

Doctrine 2 annotations and "var"

开发者 https://www.devze.com 2023-04-11 10:08 出处:网络
Could someone tell me whats the meaning of \"@var\" in annotations configuration? For example: /** * @Col开发者_开发技巧umn(type=\"string\", length=20, unique=TRUE)

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消