Skip to content

[question] How to list all classes that used in a file? #232

Description

@erlangparasu

For example:

class MyKlass {
    public function createBook()
    {
        $book = new Book();

        return $book;
    }

    public function formatter()
    {
        $formatter = Utils::getFormatter();

        return $formatter;
    }
}

How to print list of class usage of that file?
In this example expected output will be: "Book" and "Utils" class.
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions