简体   繁体   中英

Is there a coding standard for PHP annotations?

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.

http://www.phpdoc.org/

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM