When I call self::$parameter = 1;
the __set
is not called.
Is there a way to workaround?
When I call self::$parameter = 1;
the __set
is not called.
Is there a way to workaround?
From the manual:
Property overloading only works in object context. These magic methods will not be triggered in static context. Therefore these methods should not be declared static. As of PHP 5.3.0, a warning is issued if one of the magic overloading methods is declared static.
So, I'm afraid not.