Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.12.0
-
I'm using Ubuntu 18.04, applies to all platforms
-
Patch Available
Description
The PHP autogenerated code currently keeps the struct derived class attributes public, and they have to be accessed like: $class->field.
The java version keeps them private instead and uses getters and setters to access and mutate the data.
A similar approach would be a better choice for most oop based php coding standards.
I've created a working patch, so if I get approval I will create a Pull request for this.