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;
    }
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;
    }
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 ; }
Message groups setter.

@param array $messageGroups
@return $this
Message groups setter .