object method getName not found in php class error code example Example: php get class name of this get_class($this);