I am wondering if php has any function that shows you a folder where object is located.
The magic constants FILE and DIR (DIR is PHP 5.3+) can be used to find this out, but they will need to be accessed from inside the class file in order to get you the information you’re looking for.
Read more here: PHP: Magic constants - Manual
This might help. get_included_files() return an array of the files included, so the one defining your class will be among them.