public function cleanParamsForLog($data)
    {
        foreach ($data as $key => &$value) {
            if (in_array($key, $this->obfuscationFields)) {
                $value = self::OBFUSCATION_STRING;
            }

            if (in_array($key, $this->removeFields)) {
                $value = self::REMOVED_STRING;
            }
        }

        return $data;
    }
public function cleanParamsForLog($data)
    {
        foreach ($data as $key => &$value) {
            if (in_array($key, $this->obfuscationFields)) {
                $value = self::OBFUSCATION_STRING;
            }

            if (in_array($key, $this->removeFields)) {
                $value = self::REMOVED_STRING;
            }
        }

        return $data;
    }
public function cleanParamsForLog ( $ data ) { foreach ( $ data as $ key => & $ value ) { if ( in_array ( $ key , $ this -> obfuscationFields ) ) { $ value = self :: OBFUSCATION_STRING ; } if ( in_array ( $ key , $ this -> removeFields ) ) { $ value = self :: REMOVED_STRING ; } } return $ data ; }
Function to prepare the parameters of an API request for logging.

Strips out critical request data like the password of a get_customer request.

@param mixed[] $data The incoming request's parameters.

@return mixed[] The cleaned parameters.
Function to prepare the parameters of an API request for logging .