status1->Text = "Method 1 callback with parameter: {$param->CallbackParameter}"; } function method2($sender, $param) { $this->status2->Text = "Method 2 callback"; } } ?>