public function cleanupDeferredEventHandlers()
    {
        foreach ($this as $key => $property) {
            if ($property instanceof DeferredEvent) {
                $property->cleanup();
                $this->{$key} = null;
            }
        }
    }
public function cleanupDeferredEventHandlers()
    {
        foreach ($this as $key => $property) {
            if ($property instanceof DeferredEvent) {
                $property->cleanup();
                $this->{$key} = null;
            }
        }
    }
public function cleanupDeferredEventHandlers ( ) { foreach ( $ this as $ key => $ property ) { if ( $ property instanceof DeferredEvent ) { $ property -> cleanup ( ) ; $ this -> { $ key } = null ; } } }
Cleans up events
@return void
Cleans up events