original_string: public static function getStringValue($value): string
      {
          if ($value instanceof \DateTime) {
              return $value->format(self::DEFAULT_DATETIME_FORMAT);
          } elseif (is_bool($value)) {
              return $value ? 'true' : 'false';
          } elseif (is_array($value)) {
              return implode(', ', array_map('self::getStringValue', $value));
          }
  
          return (string) $value;
      }
code: public static function getStringValue($value): string
      {
          if ($value instanceof \DateTime) {
              return $value->format(self::DEFAULT_DATETIME_FORMAT);
          } elseif (is_bool($value)) {
              return $value ? 'true' : 'false';
          } elseif (is_array($value)) {
              return implode(', ', array_map('self::getStringValue', $value));
          }
  
          return (string) $value;
      }
code_tokens: public static function getStringValue ( $ value ) : string { if ( $ value instanceof \ DateTime ) { return $ value -> format ( self :: DEFAULT_DATETIME_FORMAT ) ; } elseif ( is_bool ( $ value ) ) { return $ value ? 'true' : 'false' ; } elseif ( is_array ( $ value ) ) { return implode ( ', ' , array_map ( 'self::getStringValue' , $ value ) ) ; } return ( string ) $ value ; }
docstring: Get string output based on the value.
  
  @param mixed $value
  @return string
docstring_tokens: Get string output based on the value .