Code Hinting


Code hinting on class properties.

To trigger the code hinting we can use phpDoc style "@var" on the properties of a class.
In the example below $this->chapter will tripper code hinting for the class Chapter.
class Book{
   /** @var Chapter **/
   private $chapters;
}