public static function getClassStatics($class) {
        $ret = '';

        foreach ($class->getStaticProperties() as $name => $value) {
            $ret .= " public static \${$name} = " . var_export($value, true) . ";\n";
        }

        return $ret;
    }
public static function getClassStatics($class) {
        $ret = '';

        foreach ($class->getStaticProperties() as $name => $value) {
            $ret .= " public static \${$name} = " . var_export($value, true) . ";\n";
        }

        return $ret;
    }
public static function getClassStatics ( $ class ) { $ ret = '' ; foreach ( $ class -> getStaticProperties ( ) as $ name => $ value ) { $ ret .= " public static \${$name} = " . var_export ( $ value , true ) . ";\n" ; } return $ ret ; }
Get statics code from ReflectionClass

@param \ReflectionClass $class instance of the ReflectionClass

@return string
Get statics code from ReflectionClass