type = "rest"; } /** * Format the array parameter to a single rest line format separed by '/'. */ protected function format (array $message) { $rest = ""; if (! empty( $message )) { if (is_array( $message )) { foreach ($message as $index => $data) { $rest .= "/" . $data; } $rest .= "/"; } } return $rest; } }