When using phpdoc doc blocks, is it possible to describe the keys for an array?
/**
* @var array
*/
private $smtpSettings
= array(
'SMTPDebug' => (bool)true,
'SMTPSecure' => (string) 'tls',
'SMTPAuth' => (string)'',
'Username' => (string)'',
'Password' => (string)'',
'Port' => (int)25,
'Host' => (string)'',
);
I want to show in the documentation that SMTPSecure can be tls/ssl/none along with details of what the other array keys are used for.
Also, what is best practice for documenting INI files and there default values? Can phpdoc generate any kind of docs for ini files? If not, is there a way to include an ini file in the generated phpdocs with links etc to it?
Thanks
Additional Info :
I had forgotten about the JB ArrayShape, but on testing this is great when your developing the software, but when running phpdoc, the output is not rendered very well :
array{ SMTPDebug: bool Enable debug, SMTPSecure: string Security type to use, SMTPAuth: string, Username: string SMTP Auth username, Password: string SMTP Auth password, Port: int, Host: string }
The info is just formatted into a single line of text that, although it has the details needed, is not very easy to read. Is this maybe more of a phpdoc template issue or is it just a restriction within phpdoc? Thanks

JetBrains\PhpStorm\ArrayShapeattribute that can be used for that. Look for similar alternative for your IDE