Custom navigation to implementation

Answered

Hi!

Is there a way to navigate from interface method usage to its implementation in one click?

For example:

TmpInterface.php

interface TmpInterface
{
public function foo();
}

TmpImpl.php

class TmpImpl implements TmpInterface
{
public function foo()
{
return "TmpImpl::foo\n";
}
}

TmpUsage.php

class TmpUsage
{
public function __construct(TmpInterface $tmp)
{
$tmp->foo();
}
}

When I Ctrl-click on $tmp->foo(), I go to interface.

When I Ctrl-Alt-click on $tmp->foo(), I get 2 options to select - interface and implementation.

Can I somehow go directly to implementation in one click?

Thanks =)

 

Please sign in to leave a comment.