This does currently not work (only on public members). I'm not sure why exactly it fails, but I presume you're setting the variable by $object->privateMember = "newvalue"; which fails. A possibility would be to check if $object->setPrivateMember("newvalue") works. This can thankfully be done in the direct window, but having the convenience of it happening by changing the value within the object would be nice.