I just started using PhpStorm because I was missing type checking in PhP and I want to use PhpStorm to simulate it using Phpdoc. Now I have already encountered a problem.
For each page there is a php file containing logic part (page.php) and a template file for design (page.phtml). The logic part is build in OO, so it is an object that uses include to include the design (page.phtml). The problem occurs in page.phtml then i try to call methods of the OO owning <?php echo $this->GetHeader(); ?>, of course it does not recognize the method GetHeader(), because it only sees itself as $this, it has no reference to the environment it is included in. Is there any way to specify in the page.phtml which object instance should be considered as $this.