79671420

Date: 2025-06-19 00:30:32
Score: 2
Natty:
Report link

Remember getters and setters, concept always mentioned on learning OOP, the methods from classes that either return and modify an attribute of an object?

Accessor = getter but for model attribute
Mutator = setter but for model attribute

So in summary an accessor is a function to get a value from a model attribute with some modification, and another for setting with some modification. Pretty simple, but the docs really make it somewhat difficult to understand by the name at first sight.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: augusto-dmh