Jazi
Jazi

Reputation: 6732

Doctrine 2 annotations and "var"

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

Answers (2)

str
str

Reputation: 44979

This is an annotation used for automatic documentation generation with phpDocumentor. For @var see their documentation.

Upvotes: 5

genesis
genesis

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

Related Questions