How-to articles, tricks, and solutions about MAGIC-METHODS
PHP __get and __set magic methods
The __get and __set magic methods in PHP are used to intercept calls to get or set the value of inaccessible properties of an object.
What is the difference between __str__ and __repr__?
__str__ and __repr__ are two special methods in Python classes.