My problem is: I need to overload standard get and set for static variables in class... but no such functionality provided in php... it was asked in 2008 and still not implemented... Same goes for readonly...
My question: is there a way to make a static property accesible for reading from outside, but protected from modification?
echo aaa::$qwe; //<--- echoes value of $qwe
aaa::$qwe = '666'; //<--- throws an error because variable is protected from modification
I can't use const because some variables contain arrays.
Maybe there are some workarounds?
Yeah, I know I can make it like aaa::Get('qwe') but that's no good...