We will get all the static properties as an PHP Array
private function theme_default_value ($key) {
$full_class_path = Constants::$my_namespace . 'MyClass';
$class = new \ReflectionClass( $full_class_path );
$default_value = $class->getStaticPropertyValue( $key );
return $default_value;
}
No comments:
Post a Comment