src/EventPayload.php
/**
     * Higher order function that takes a string and converts it to snake case.
     *
     * @return callable
     */
Higher order function that takes a string and converts it to snake case.
@return callable
Higher order function that takes a string and converts it to snake case . @return callable
private function transformToSnakeCase(): callable
    {
        return function ($key) {
            return strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $key));
        };
    }
private function transformToSnakeCase ( ) : callable { return function ( $ key ) { return strtolower ( preg_replace ( '/(?<!^)[A-Z]/' , '_$0' , $ key ) ) ; } ; }
Higher order function that takes a string and converts it to snake case.
Higher order function that takes a string and converts it to snake case .