O'Reilly logo

PHP Application Development with NetBeans Beginner's Guide by M A Hossain Tonu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — documenting the PHP class and class variables

In this section, we will add a PHP class using NetBeans and update the preceding DocBlock with class documentation tags. So let's go for it...

  1. Right-click on the Chapter5 project to choose New | PHP Class..., insert the class name as Test into the File Name box, and click on Finish, as follows:
    Time for action — documenting the PHP class and class variables
  2. The Test class should look similar to the following:
    Time for action — documenting the PHP class and class variables

    In the previous screenshot, you can see that the opened Test class has an added DocBlock at the top with a sample class description along with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required