final class EventNormalizer (View source)

internal  inside projections the event will already be denormalized
 

Central authority to convert Content Repository domain events to Event Store EventData and EventType, vice versa.

  • For normalizing (from classes to event store)
  • For denormalizing (from event store to classes)

Methods

static EventNormalizer
create()

No description

string
getEventClassName(Event $event)

No description

Event
normalize(EventInterface|DecoratedEvent $event)

No description

denormalize(Event $event)

No description

Details

static EventNormalizer create()

internal  never instantiate this object yourself
 

No description

Return Value

EventNormalizer

string getEventClassName(Event $event)

No description

Parameters

Event $event

Return Value

string

Event normalize(EventInterface|DecoratedEvent $event)

No description

Parameters

EventInterface|DecoratedEvent $event

Return Value

Event

EventInterface denormalize(Event $event)

No description

Parameters

Event $event

Return Value

EventInterface