Book Image

PhpStorm Cookbook

By : Mukund Chaudhary
Book Image

PhpStorm Cookbook

By: Mukund Chaudhary

Overview of this book

Table of Contents (16 chapters)
PhpStorm Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating TODO tasks


Suppose it is the end of day, you have to hurry home (no pun intended), there are fantastic ideas overflowing in your mind, and you are quite sure that you will not be able to regenerate those ideas. You can ask TODO to come to your assistance in those cases.

Getting ready

A TODO tag, when added to some PHP code, makes it visible under the TODO view. You can also refer to the TODO section of this chapter for a refresher.

Considering the same Dish and the PizzaDish scenario, suppose you thought of having some system to check whether the dish is cooked, you can put a flag there and then. This flag will keep reminding you about this.

How to do it...

To do a TODO, all you need to do is write TODO, followed by the reminder text, and press Ctrl + / (that is comment the code). From what you have learned already, you can now document your Dish class. Probably, it would look something like the following code snippet:

class Dish {
  /**
  * Add some ingredients to your dish. <br/...