Safeguarding and Sculpting with Getters and Setters In the last article, we covered visibility modifiers and set all of our properties to private. https://www.dinocajic.com/php-visibility-modifiers/ If we wanted to access those properties or modify them in their current state, we wouldn’t be able to. That’s where getters and setters, or accessors and mutators, come into play. Getters and setters are just the public methods that either modify or retrieve a property. With the various setter methods, we can use checks to validate the submitted data. For example, let’s say that we were modifying the $year property with our setter. The argument that’s received by the setter