Possible Duplicate:
PHPDoc type hinting for array of objects?
I use PhpDocumentor2 for generating documentation. I searched for this subject but I can't find specific rule for it. For Example I have class which name is AddressField and I want to specify my $addressFields as array of AddressField objects.
/**
* @var AddressField[]
*/
private $addressFields;
phpdoc themselves describe the use of arrays here:
The same should apply to variable definitions: