Is it possible to have a file belong to multiple subpackages? For example:
/** * Name * * Desc * * @package Core * @subpackage Sub1 * @subpackage Sub2 */
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It appears that PHPDoc does not allow you to do it for namespacing reasons. From the PHPDoc Docs:
It seems that because PHPDoc’s @package is a way to pseudo-namespace your functions and classes, but @subpackage is simply for categorization. Have you tried adding more than one subpackage? If so, what were the results?