public function validateMessage($value)
  {
    if (is_string($value)) {
      $result = true;
    } elseif (is_object($value) && method_exists($value, "__toString")) {
      $result = true;
    } else {
      $result = false;
    }
    
    return $result;
  }
public function validateMessage($value)
  {
    if (is_string($value)) {
      $result = true;
    } elseif (is_object($value) && method_exists($value, "__toString")) {
      $result = true;
    } else {
      $result = false;
    }
    
    return $result;
  }
public function validateMessage ( $ value ) { if ( is_string ( $ value ) ) { $ result = true ; } elseif ( is_object ( $ value ) && method_exists ( $ value , "__toString" ) ) { $ result = true ; } else { $ result = false ; } return $ result ; }
Validator for 'message' property

@param string $value Message

@return boolean
Validator for message property