All the files in the code base I am documenting will always use the same version “string” Is there a way I can specific in a single place for the PhpDocumentor to use the same version for all files, regardless if it is specified or not (should auto-inherit)
…and what other tags would this be useful for off the top of your head?
Edit:
Anything that could get around parent-child relations? Something like a .ini or configuration file for reading in the version, author, copyright?
I am not aware PHPDocumentor allows anything like this.
Also, having the same version on all files seems wrong usage to me. The version annotation gives the version for a specific file. If you was to fix a bug in Class A, why would the version of Class B change?
As for inserting the same annotations across multiple documents, I suggest to look into your IDEs templating feature. Usually, you can configure snippets like this and insert them with keyboard shortcuts or when creating new files.
Another option would be to set and replace annotations values when creating the documentation through a deploy script, like Phing or Ant or through a pre-commit hook in your code repository.
EDIT Going through the phpdocumentor manual again, I found this:
It’s not exactly what you are looking for, but it’s a similar direction.