protected function removeEventCallable(
        /*# string */ $eventName,
        $callable
    ) {
        if (null === $callable) {
            // remove all callables
            $this->events[$eventName]->flush();
        } else {
            // remove one callable
            $this->events[$eventName]->remove($callable);
        }

        // when count is zero, remove queue
        if (count($this->events[$eventName]) === 0) {
            unset($this->events[$eventName]);
        }
    }
protected function removeEventCallable(
        /*# string */ $eventName,
        $callable
    ) {
        if (null === $callable) {
            // remove all callables
            $this->events[$eventName]->flush();
        } else {
            // remove one callable
            $this->events[$eventName]->remove($callable);
        }

        // when count is zero, remove queue
        if (count($this->events[$eventName]) === 0) {
            unset($this->events[$eventName]);
        }
    }
protected function removeEventCallable ( /*# string */ $ eventName , $ callable ) { if ( null === $ callable ) { // remove all callables $ this -> events [ $ eventName ] -> flush ( ) ; } else { // remove one callable $ this -> events [ $ eventName ] -> remove ( $ callable ) ; } // when count is zero, remove queue if ( count ( $ this -> events [ $ eventName ] ) === 0 ) { unset ( $ this -> events [ $ eventName ] ) ; } }
Remove event or its callable

@param  string $eventName
@param  callable|null $callable
@access protected
Remove event or its callable