<?php readonly class Foo { public function __set($name, $value) { var_dump('here'); } public function __get($name) { return 1; } } $f = new Foo(); $f->test = 1; echo $f->test;
You have javascript disabled. You will not be able to edit any code.