There were no type hints etc. going on, and we would have needed the getters anyway. See https://github.com/flarum/core/pull/1105#issuecomment-279310998.