public static function loadClassReflection($class)
    {
        if (is_object($class)) {
            $class = get_class($class);
        }

        if (isset(self::$classReflections[$class])) {
            return self::$classReflections[$class];
        }

        $reflection = new \ReflectionClass($class);

        self::$classReflections[$class] = $reflection;

        return $reflection;
    }
public static function loadClassReflection($class)
    {
        if (is_object($class)) {
            $class = get_class($class);
        }

        if (isset(self::$classReflections[$class])) {
            return self::$classReflections[$class];
        }

        $reflection = new \ReflectionClass($class);

        self::$classReflections[$class] = $reflection;

        return $reflection;
    }
public static function loadClassReflection ( $ class ) { if ( is_object ( $ class ) ) { $ class = get_class ( $ class ) ; } if ( isset ( self :: $ classReflections [ $ class ] ) ) { return self :: $ classReflections [ $ class ] ; } $ reflection = new \ ReflectionClass ( $ class ) ; self :: $ classReflections [ $ class ] = $ reflection ; return $ reflection ; }
Load class reflection

@param string|object $class

@return \ReflectionClass
Load class reflection