DEV Community

Discussion on: PHP Typed Properties: Think Twice.

Collapse
 
mcfedr profile image
Fred Cox

no, you've gained the option of doing anything else at the point of get and set - you can change your implementation - you can refactor your field into something different and maintain your existing interface. a public field is just that, once its there you can never remove it.