PHP

Getters and Setters are better than public properties

Posted on

I ran into something that bit me in the butt the other day and I have been meaning to talk about it. Getters and Setters are better than public properties! In theory, it seems like a property of a class that should be freely written and mostly read from should be a public property. It […]