Neos\Flow\Reflection\ReflectionService::getClassNameByObject PHP Method

getClassNameByObject() public method

Returns the class name of the given object. This is a convenience method that returns the expected class names even for proxy classes.
Deprecation: since 3.0 use \Neos\Utility\TypeHandling::getTypeForValue() instead
public getClassNameByObject ( object $object ) : string
$object object
return string The class name of the given object
    public function getClassNameByObject($object)
    {
        return TypeHandling::getTypeForValue($object);
    }
ReflectionService