/** * Entry point: Write staticTarget member, then read it back * * @param lang.XPClass * @return string */ public static function writeStatic(XPClass $class) { with($f = $class->getField('staticTarget')); $f->set(NULL, 'Modified'); return $f->get(NULL); }