@@ 68-77 (lines=10) @@ | ||
65 | return $storedEvent->toStoredEventData(); |
|
66 | } |
|
67 | ||
68 | protected static function getEventClass(string $class): string |
|
69 | { |
|
70 | $map = config('event-projector.event_class_map', []); |
|
71 | ||
72 | if (! empty($map) && in_array($class, $map)) { |
|
73 | return array_search($class, $map, true); |
|
74 | } |
|
75 | ||
76 | return $class; |
|
77 | } |
|
78 | } |
|
79 |
@@ 89-98 (lines=10) @@ | ||
86 | return Arr::get(config('event-projector.event_class_map', []), $class, $class); |
|
87 | } |
|
88 | ||
89 | protected static function getEventClass(string $class): string |
|
90 | { |
|
91 | $map = config('event-projector.event_class_map', []); |
|
92 | ||
93 | if (! empty($map) && in_array($class, $map)) { |
|
94 | return array_search($class, $map, true); |
|
95 | } |
|
96 | ||
97 | return $class; |
|
98 | } |
|
99 | } |
|
100 |