public function detach($event, $callback)
    {
        if ($this->hasEvent($event)) {
            $this->removeEventCallable($event, $callback);
        } elseif ('' === $event) {
            $this->events = []; // remove all events
        }
        return true;
    }
public function detach($event, $callback)
    {
        if ($this->hasEvent($event)) {
            $this->removeEventCallable($event, $callback);
        } elseif ('' === $event) {
            $this->events = []; // remove all events
        }
        return true;
    }
public function detach ( $ event , $ callback ) { if ( $ this -> hasEvent ( $ event ) ) { $ this -> removeEventCallable ( $ event , $ callback ) ; } elseif ( '' === $ event ) { $ this -> events = [ ] ; // remove all events } return true ; }
if call is NULL, clear this event.
if event is '', clear all events

{@inheritDoc}
if call is NULL clear this event . if event is clear all events