public function trigger($event) { if (isset($this->on[$event])) { $call = $this->on[$event]; return call_user_func($call); } else { return null; } }