@return $this or other kind of magic

Is PhpStorm support @return $this construction or any plans to implement it.
Or add "magic" autocomplete suggestion based on class hierarchy.
This can be very usefull for any kind of chain calls and some implementations of ActiveRecord/DataMaper patterns.
Let me explain with example:

class A {   /**    * @return A    */   public function test() {     return $this;   } }

class B extends A {   public function more() {        } }

$obj = new B(); $it = $obj->test();

$it-> // here can't get more() method

Magic can be "if some parent class return self or $this - use class of object for autocomplete".

Please sign in to leave a comment.