How To Access Privateprotected Method Outside A Class
Related How To Access Privateprotected Method Outside A Class Online
Accessing a protected member variable outside a class
1 week ago Modify the class and add a public method that returns the value you want.If you can't modify it, consider extending it and exposing the value there (it will be accessible, since it's protected). Prefer the first option, this is more of a hack.