original_string: public function addMetadata($data)
      {
          if (is_array($data)) {
              foreach ($data as $k => $v) {
                  $this->metadata[$k] = $v;
              }
          }
          else {
              $this->metadata[] = $data;
          }
  
          return $this;
      }
code: public function addMetadata($data)
      {
          if (is_array($data)) {
              foreach ($data as $k => $v) {
                  $this->metadata[$k] = $v;
              }
          }
          else {
              $this->metadata[] = $data;
          }
  
          return $this;
      }
code_tokens: public function addMetadata ( $ data ) { if ( is_array ( $ data ) ) { foreach ( $ data as $ k => $ v ) { $ this -> metadata [ $ k ] = $ v ; } } else { $ this -> metadata [ ] = $ data ; } return $ this ; }
docstring: Add global metadata.
  
  Mandrill will store this metadata and make it available for retrieval.
  In addition, you can select up to 10 metadata fields to index and
  make searchable using the Mandrill search api.
  
  @param string|array $data
  
  @return Message
docstring_tokens: Add global metadata .