private function getEventClass($entity, $type) { return 'App\\Events\\' . ucfirst($entity->getEntityType()) . 'Was' . $type; }