original_string: public function setMessageGroups(array $messageGroups)
      {
          $this->messageGroups = $messageGroups;
  
          // Set the joined message groups as well
          foreach ($this->messageGroups as $header => $keywords) {
              $this->messageGroupsJoined[$header] = join('|', $keywords);
          }
  
          return $this;
      }
code: public function setMessageGroups(array $messageGroups)
      {
          $this->messageGroups = $messageGroups;
  
          // Set the joined message groups as well
          foreach ($this->messageGroups as $header => $keywords) {
              $this->messageGroupsJoined[$header] = join('|', $keywords);
          }
  
          return $this;
      }
code_tokens: public function setMessageGroups ( array $ messageGroups ) { $ this -> messageGroups = $ messageGroups ; // Set the joined message groups as well foreach ( $ this -> messageGroups as $ header => $ keywords ) { $ this -> messageGroupsJoined [ $ header ] = join ( '|' , $ keywords ) ; } return $ this ; }
docstring: Message groups setter.
  
  @param array $messageGroups
  @return $this
docstring_tokens: Message groups setter .