Is there a PHP coding standard that defines unambiguously how to write docblock annotations for properties and methods:
@var
@param
@return
@throws
including the correct spacing between them?
PSR-2 covers the code itself, but does not enforce the usage of annotations.
There's no annotations in PHP. If you use phpdoc
to generate documentation, you need to follow phpdoc
guides.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.