AppserverIo\Appserver\DependencyInjectionContainer\Provider::getReflectionClassForObject PHP Method

getReflectionClassForObject() public method

Returns a reflection class intance for the passed class name.
See also: DependencyInjectionContainer\Interfaces\ProviderInterface::newReflectionClass()
See also: DependencyInjectionContainer\Interfaces\ProviderInterface::getReflectionClass()
public getReflectionClassForObject ( object $instance ) : AppserverIo\Lang\Reflection\ReflectionClass
$instance object The instance to return the reflection class instance for
return AppserverIo\Lang\Reflection\ReflectionClass The reflection instance
    public function getReflectionClassForObject($instance)
    {
        return $this->getReflectionClass(get_class($instance));
    }