protected function apply(DomainEventInterface $event)
    {
        $handler = $this->determineEventHandlerMethodFor($event);

        if (!method_exists($this, $handler)) {
            return;
        }

        $this->{$handler}($event);
    }
protected function apply(DomainEventInterface $event)
    {
        $handler = $this->determineEventHandlerMethodFor($event);

        if (!method_exists($this, $handler)) {
            return;
        }

        $this->{$handler}($event);
    }
protected function apply ( DomainEventInterface $ event ) { $ handler = $ this -> determineEventHandlerMethodFor ( $ event ) ; if ( ! method_exists ( $ this , $ handler ) ) { return ; } $ this -> { $ handler } ( $ event ) ; }
Apply given event

@param DomainEventInterface $event
Apply given event