/** * * @param Arg $arg * @param CompositeArg $newArg */ public function link(&$arg, &$newArg) { $arg->linkResult($newArg->val); $newArg->parentArg = $arg; }