public function un($event, callable $fn = null) {
        if (isset($this->events[$event])) {
            if ($fn) {
                foreach ($this->events[$event] as $k => $ev) {
                    if ($ev === $fn) {
                        unset($this->events[$event][$k]);
                        break;
                    }
                }
            } else {
                unset($this->events[$event]);
            }
        }
        return $this;
    }
public function un($event, callable $fn = null) {
        if (isset($this->events[$event])) {
            if ($fn) {
                foreach ($this->events[$event] as $k => $ev) {
                    if ($ev === $fn) {
                        unset($this->events[$event][$k]);
                        break;
                    }
                }
            } else {
                unset($this->events[$event]);
            }
        }
        return $this;
    }
public function un ( $ event , callable $ fn = null ) { if ( isset ( $ this -> events [ $ event ] ) ) { if ( $ fn ) { foreach ( $ this -> events [ $ event ] as $ k => $ ev ) { if ( $ ev === $ fn ) { unset ( $ this -> events [ $ event ] [ $ k ] ) ; break ; } } } else { unset ( $ this -> events [ $ event ] ) ; } } return $ this ; }
Remove an action setted for the specified event

@param int $event event code
@param callable|null $fn function to call when the event was triggered
@return TcTable
Remove an action setted for the specified event