WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18510, comment 11


Ignore:
Timestamp:
08/08/2012 08:39:45 PM (6 years ago)
Author:
nacin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18510, comment 11

    initial v1  
    11I chatted about this with pento after [21473] landed.
    22
    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()`.
     3I 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()`.
    44
    55I do think that declaring things as protected and including these magic methods outweighs "var" and no magic methods.