Represent the dependencies of a method of a class

Hello!

How can you represent dependencies in PhpStorm?
I'm looking for a way to display all dependencies of a method of a class.

Sincerely yours

Stephan

4 comments

Hi there,

Since there is no code example and what you expect to see .... I can only assume that you are after either "Navigate | Call Hierarchy" (then choose proper hierarchy "direction" in Hierarchy tool window) or maybe even "Navigate | Method Hierarchy"

screen01.png

0

Hello!

Thanks for the answer.
I have a class with a method.
I want to check which other classes this method is used?

Sincerely yours

Stephan

0

Navigate | Call Hierarchy...

Class One
{
    public function QQQ()
    {
        echo "Meow";
    }
}

class Two
{
    public function WWW()
    {
        $A = new One();
        $A->QQQ();
    }
}

class Three
{
    public function EEE()
    {
        $A = new One();
        $A->QQQ();
    }
}


screen01.png

0

Hello!

Thank you. If you come to Germany you a free beer.

Sincerely yours

Stephan

0

Please sign in to leave a comment.