public static function getReflectionClass($class)
    {
        $class = self::toClassName($class);

        if (!isset(self::$cache[$class]['class'])) {
            self::$cache[$class]['class'] = new \ReflectionClass($class);
        }

        return self::$cache[$class]['class'];
    }
public static function getReflectionClass($class)
    {
        $class = self::toClassName($class);

        if (!isset(self::$cache[$class]['class'])) {
            self::$cache[$class]['class'] = new \ReflectionClass($class);
        }

        return self::$cache[$class]['class'];
    }
public static function getReflectionClass ( $ class ) { $ class = self :: toClassName ( $ class ) ; if ( ! isset ( self :: $ cache [ $ class ] [ 'class' ] ) ) { self :: $ cache [ $ class ] [ 'class' ] = new \ ReflectionClass ( $ class ) ; } return self :: $ cache [ $ class ] [ 'class' ] ; }
Return the reflection class of an object or a class

@param string|object $object

@return \ReflectionClass
Return the reflection class of an object or a class