/** * Returns the event class * * @return Eden\Core\Event */ public function event() { return Event::i(); }
/** * Notify all observers of that a specific * event has happened * * @param string|null $event the event to trigger * @param mixed[, mixed..] $arg the arguments to pass to the handler * * @return Eden\Core\Base */ public function trigger($event = null) { //argument 1 must be string Argument::i()->test(1, 'string', 'null'); call_user_func_array(array(Event::i(), 'trigger'), func_get_args()); return $this; }