DEV Community

Discussion on: PHP For JavaScript Developers

Collapse
vlasales profile image
Vlastimil Pospichal

Setters are unnecessary in PHP. Use immutable private attributes and be happy.

Collapse
smoldev profile image
Megan Miller Author

Thank you for the clarification!