Changes between Initial Version and Version 1 of Ticket #18510, comment 11
- Timestamp:
- 08/08/2012 08:39:45 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18510, comment 11
initial v1 1 1 I chatted about this with pento after [21473] landed. 2 2 3 I think it is really nice to declare things as protected so people know what is protected, and then expose them (as necessary from a pre-protected standpoint) with `__get()`. But this also means we should probably expose them with `__set() , `__unset()`, and `__isset()`.3 I think it is really nice to declare things as protected so people know what is protected, and then expose them (as necessary from a pre-protected standpoint) with `__get()`. But this also means we should probably expose them with `__set()`, `__unset()`, and `__isset()`. 4 4 5 5 I do think that declaring things as protected and including these magic methods outweighs "var" and no magic methods.