getParentClass()->getName(); } //Otherwise we can just return the class return get_class($obj); } }