Reputation: 6732
Could someone tell me whats the meaning of "@var" in annotations configuration?
For example:
/**
* @Column(type="string", length=20, unique=TRUE)
* @var string
*/
protected $login;
Upvotes: 5
Views: 1845
Reputation: 44979
This is an annotation used for automatic documentation generation with phpDocumentor. For @var see their documentation.
Upvotes: 5
Reputation: 50976
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
Upvotes: 6