$value) { $this->{$key} = $value; } } public function callback($event, $data) { return call_user_func($this->callback, $event, $data); } }