How do you annotate functions?

Source: Internet
Author: User
One is beautiful, the other is clear, the other is beautiful, and the other is clear

Reply content:

One is beautiful and the other is clear at a glance

/*** Obtain the product list by category * @ param $ shop_id shop id * @ param $ cate_id Category id * @ param $ page number * @ param $ per_page number * @ return mixed */

This is automatically generated using phpstorm.

First, annotations are easy to understand, but they have nothing to do with appearance .. There are also two types of annotations, one is code line level, the other is method level, and the method level generally requires document annotation.

It is recommended that you refer to the standard programming specification of the php psr code.
Https://github.com/hfcorriez...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.