예제 #1
0
 /**
  * Adds another string to the end of a string, separating the strings with a space character, and returns the new
  * string.
  *
  * In case of a boolean value, it's added as "1" for `true` and as "0" for `false`.
  *
  * @param  string|int|float|bool $string The string or value to be added.
  *
  * @return CUStringObject The resulting string.
  */
 public function addWs($string)
 {
     if (!is_string($string)) {
         $string = !is_bool($string) ? (string) $string : CUString::fromBool10($string);
     }
     return $this . " " . $string;
 }