- You make a new instance of the
Repository
class - You use reflection to invoke the
getUser
method on the$repository
object - You now try to find in PHPStorm (or other IDE which supports it) the usages of the method
getUser
in your project (Alt + F7)
IDE can't find it until you put the @uses \App\Repository::getUser()
in the comments for method which uses it.