Overview
Add getters for all protected model variables since they are currently being accessed directly, which is not the intended pattern. Making them public is a bad idea because they can be modified in the code unintentionally. They should be changed to private with a getter, then calling code should be refactored to use the getter.
Background
This was identified as a follow-up task from PR #4485 (Update to CodeIgniter 4.7.2).
Tasks
References
Overview
Add getters for all protected model variables since they are currently being accessed directly, which is not the intended pattern. Making them public is a bad idea because they can be modified in the code unintentionally. They should be changed to private with a getter, then calling code should be refactored to use the getter.
Background
This was identified as a follow-up task from PR #4485 (Update to CodeIgniter 4.7.2).
Tasks
protectedtoprivateReferences