@@ 91-100 (lines=10) @@ | ||
88 | return $eloquentStoredEvent->toStoredEvent(); |
|
89 | } |
|
90 | ||
91 | private function getEventClass(string $class): string |
|
92 | { |
|
93 | $map = config('event-projector.event_class_map', []); |
|
94 | ||
95 | if (! empty($map) && in_array($class, $map)) { |
|
96 | return array_search($class, $map, true); |
|
97 | } |
|
98 | ||
99 | return $class; |
|
100 | } |
|
101 | } |
|
102 |
@@ 88-97 (lines=10) @@ | ||
85 | return Arr::get(config('event-projector.event_class_map', []), $class, $class); |
|
86 | } |
|
87 | ||
88 | protected static function getEventClass(string $class): string |
|
89 | { |
|
90 | $map = config('event-projector.event_class_map', []); |
|
91 | ||
92 | if (! empty($map) && in_array($class, $map)) { |
|
93 | return array_search($class, $map, true); |
|
94 | } |
|
95 | ||
96 | return $class; |
|
97 | } |
|
98 | } |
|
99 |