ReflectionClass::setStaticPropertyValue
Sets public static property value
Description
public void ReflectionClass::setStaticPropertyValue(string $name
, mixed $value
)
Sets the value of a public static property.
If the property is private or protected, the method will fail.
ReflectionProperty::setValue allows setting
the value of public, private, and protected properties.
Parameters
-
name
-
Property name.
-
value
-
New property value.
Return Values
No value is returned.
See Also
- ReflectionClass::getStaticPropertyValue
- ReflectionProperty::setValue