Reputation: 68084
Let's say I got the class name with get_class($this)
within an abstract class method.
How can I also get the file name in which this class was defined? (full path)
I know I could pass it as an argument to my child class and create a property which is accessible in the parent class, but I was wondering if PHP has something built-in
Upvotes: 4
Views: 357