public static function fromMethodName(string $methodName): array
    {
        if (strpos($methodName, '::') > 0) {
            list($className, $functionName) = explode('::', $methodName);
        } elseif (substr($methodName, -9, 9) === '{closure}') {
            $className = substr($methodName, 0, -9);
            $functionName = '{closure}';
        }

        return [
            'FLOW_LOG_ENVIRONMENT' => [
                'packageKey' => self::getPackageKeyFromClassName($className),
                'className' => $className,
                'methodName' => $functionName
            ]
        ];
    }
public static function fromMethodName(string $methodName): array
    {
        if (strpos($methodName, '::') > 0) {
            list($className, $functionName) = explode('::', $methodName);
        } elseif (substr($methodName, -9, 9) === '{closure}') {
            $className = substr($methodName, 0, -9);
            $functionName = '{closure}';
        }

        return [
            'FLOW_LOG_ENVIRONMENT' => [
                'packageKey' => self::getPackageKeyFromClassName($className),
                'className' => $className,
                'methodName' => $functionName
            ]
        ];
    }
public static function fromMethodName ( string $ methodName ) : array { if ( strpos ( $ methodName , '::' ) > 0 ) { list ( $ className , $ functionName ) = explode ( '::' , $ methodName ) ; } elseif ( substr ( $ methodName , - 9 , 9 ) === '{closure}' ) { $ className = substr ( $ methodName , 0 , - 9 ) ; $ functionName = '{closure}' ; } return [ 'FLOW_LOG_ENVIRONMENT' => [ 'packageKey' => self :: getPackageKeyFromClassName ( $ className ) , 'className' => $ className , 'methodName' => $ functionName ] ] ; }
Returns an array containing the log environment variables
under the key FLOW_LOG_ENVIRONMENT to be set as part of the additional data
in an log method call.

@param string $methodName
@return array
Returns an array containing the log environment variables under the key FLOW_LOG_ENVIRONMENT to be set as part of the additional data in an log method call .