/** * Returns the event handler class * * @return Eden\Core\Event */ public function event() { return Event::i(); }
/** * Stops listening to an event * * @param string|null * @param callable|null * * @return Eden\Core\Base */ public function unlisten($event = null, $callable = null) { Argument::i()->test(1, 'string', 'null')->test(2, 'callable', 'null'); Event::i()->unlisten($event, $callable); return $this; }