Let's get back to a use case. By now, the memories of the Dish
class must be under a thick layer of dust since it has not been used for a while now. Go ahead, mate. Remove the dust, shred the laziness, and set off looking at things from a different perspective.
A small amount of strain on your brain (and obviously reading documentation) will make you remember that you created the Dish
class in a hurry. Now that you have matured enough to use PhpStorm as an IDE, you need to prove your might in programming as well. You need to make the Dish
class more functional.
You can begin by peeping into the only method inside the Dish
class. Once you do, you will clearly see that there is a FIXME
tag. As stated in the FIXME
tag, you should check for a valid ingredient name before allowing it to be added to the dish. This will prevent any unwanted ingredients from getting added to your dish and thus spoiling it. You need to specify two changes...