Prooph\EventSourcing\AggregateRoot::apply PHP Метод

apply() защищенный Метод

Apply given event
protected apply ( AggregateChanged $e )
$e AggregateChanged
    protected function apply(AggregateChanged $e)
    {
        $handler = $this->determineEventHandlerMethodFor($e);
        if (!method_exists($this, $handler)) {
            throw new \RuntimeException(sprintf('Missing event handler method %s for aggregate root %s', $handler, get_class($this)));
        }
        $this->{$handler}($e);
    }