protected function encodeArray(array $args): array
    {
        foreach ($args as $key => $value) {
            if (is_object($value)) {
                $args[$key] = get_class($value);
            }
        }
        return $args;
    }