Property hooks ----- 42; } } ----- $stmts[0]->stmts[0]->hooks[] = new Node\PropertyHook('set', new Scalar\Int_(123)); ----- 42; set => 123; } } ----- 42; } ) {} } ----- $stmts[0]->stmts[0]->params[0]->hooks[] = new Node\PropertyHook('set', new Scalar\Int_(123)); ----- 42; set => 123; } ) {} } ----- stmts[0]->hooks[0]->body[] = new Stmt\Expression(new Expr\Variable('b')); ----- 42; } } ----- $stmts[0]->stmts[0]->hooks[0]->flags = Modifiers::FINAL; ----- 42; } } ----- 42; } } ----- $stmts[0]->stmts[0]->hooks[0]->body = [new Stmt\Return_(new Scalar\Int_(24))]; ----- stmts[0]->hooks[0]->body = new Scalar\Int_(24); $stmts[0]->stmts[1]->hooks[0]->body = [new Stmt\Return_(new Scalar\Int_(24))]; ----- 24; } public $prop2 { &get { return 24; } } }