@@ 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 | private static function getStoredEventModel(string $model = null): string |
|
80 | { |
@@ 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 |