DEV Community

Discussion on: PHP Typed Properties: Think Twice.

Collapse
 
kip13 profile image
kip
Collapse
 
blackcat_dev profile image
Sasha Blagojevic

You can call it however you want but if another object can directly (on properties) change the state of your object, that object is not encapsulated :)