DEV Community

loading...

Discussion on: PHP is bad for Object-Oriented Programming OOP

Collapse
avinint profile image
Bruno Avinint

Not to mention declaring variables with the var keyword. Looks like code written ten years ago.

Collapse
jorgecc profile image
Jorge Castro Author • Edited

Then how could you set a property?.

Do you want to define as private and to add setter and getter? Then good luck by breaking the performance of the code because of a code that adds nothing but bloat.