> > I am considering to try and introduce a __repr() magic method that is > similar to the __repr__() method from Python.
No more magic methods, please. We have too many already. As the intent of the resulting string is to obtain PHP code that will > construct the variable, another option might be: var_constructor(). Wouldn't this be extremely confusing given that we use the name constructor for OOP?