public static function setStaticPropertyValue($class, $name, $value) {
        $property = new \ReflectionProperty($class, $name);
        $property->setAccessible(true);
        $property->setValue(null, $value);

        return $property;
    }
public static function setStaticPropertyValue($class, $name, $value) {
        $property = new \ReflectionProperty($class, $name);
        $property->setAccessible(true);
        $property->setValue(null, $value);

        return $property;
    }
public static function setStaticPropertyValue ( $ class , $ name , $ value ) { $ property = new \ ReflectionProperty ( $ class , $ name ) ; $ property -> setAccessible ( true ) ; $ property -> setValue ( null , $ value ) ; return $ property ; }
Sets the value to the specified property of static class.
If the property is unavailable, makes it available.

@param mixed $class The class name, that contains the property.
@param string $name The name of the property.
@param mixed $value The value to set.

@return ReflectionProperty
Sets the value to the specified property of static class . If the property is unavailable makes it available .