Add messagesGenerated

@param \Sopinet\ChatBundle\Entity\MessagePackage $messagesGenerated
@return Message
776179
public function addMessagesGenerated(\Sopinet\ChatBundle\Entity\MessagePackage $messagesGenerated)
    {
        $this->messagesGenerated[] = $messagesGenerated;

        return $this;
    }
889286
public void add(final GeneratedMessage.GeneratedExtension<?, ?> extension) {
    if (extension.getDescriptor().getJavaType() ==
        FieldDescriptor.JavaType.MESSAGE) {
      if (extension.getMessageDefaultInstance() == null) {
        throw new IllegalStateException(
            "Registered message-type extension had null default instance: " +
            extension.getDescriptor().getFullName());
      }
      add(new ExtensionInfo(extension.getDescriptor(),
                            extension.getMessageDefaultInstance()));
    } else {
      add(new ExtensionInfo(extension.getDescriptor(), null));
    }
  }
1175272
public function addMessage($to, $message, array $options = array(), $autoSend = false)
    {
        if (count($this->messages) == self::BATCH_MAX_QUANTITY) {
            throw new MaxMessagesReachedException('Unwire batch mode does not allow more than '.self::BATCH_MAX_QUANTITY.' pr. batch.');
        }

        if ($this->config['get_smsc']) {
            $options['smsc'] = $this->getSmsc($to);
        }

        if (isset($options['price']) && !preg_match('/[0-9]+\.[0-9]{2}[A-Z]{3}/', $options['price'])) {
            throw new InvalidArgumentException('The price must be in the format "00.00XXX" where XXX is the correct currency code for the destination country.');
        }

        return parent::addMessage($to, $message, $options, $autoSend);
    }
132613
public function addMessageNow($key, $message)
    {
        // Create Array for this key
        if (!isset($this->forNow[$key])) {
            $this->forNow[$key] = [];
        }

        // Push onto the array
        $this->forNow[$key][] = $message;
    }
965452
public function setMessages(Messages $messages)
    {
        return new self(
            $this->undefined,
            $this->enabled,
            $this->execute,
            $messages
        );
    }
828148
public function add($key, $message)
    {
        if ($this->isUnique($key, $message)) {
            $this->messages[$key][] = $message;
        }

        return $this;
    }
560880
public function addMessage(Message $message, $prepend = false)
    {
        if (!$prepend) {
            $this->appendMessage($message);
        } else {
            $this->prependMessage($message);
        }

        return $this;
    }
64538
public function addTranslation(\Haven\WebBundle\Entity\FaqTranslation $translations) {
        $translations->setParent($this);
        $this->translations[] = $translations;

        return $this;
    }
510027
public function removeMessagesPackageReceived(\Sopinet\ChatBundle\Entity\MessagePackage $messagesPackageReceived)
    {
        $this->messagesPackageReceived->removeElement($messagesPackageReceived);
    }
220709
public function addTranslation(\Sulu\Bundle\ResourceBundle\Entity\OperatorTranslation $translations)
    {
        $this->translations[] = $translations;

        return $this;
    }
1328175
public function addMessage(Message $message)
    {
        $message->setMessageBroker($this);
        $this->messages->attach($message);
    }
862193
public static function add(string $messageType, string $message): void
    {
        $_SESSION[self::SESSION_KEY][$messageType][] = $message;
    }
134451
public function addMessages($messages, $storageType)
    {
        if ($messages instanceof Mage_Core_Model_Message_Collection) {
            $messages = $messages->getItems();
        }

        $this->scheduledMessages[$storageType] = $messages;
        return $this;
    }
991001
public function add(Message $message, $groupName = null) {
		if (!isset($this->messages[$groupName])) {
			$this->messages[$groupName] = array();
		}	
		
		$this->messages[$groupName][] = $message;
	}
1278533
public function addMessage($message, $type)
    {
        if (!is_string($message)) {
            throw new \InvalidArgumentException('Message must be a string');
        }
        if (!$message) {
            throw new \InvalidArgumentException('Message can\'t be empty');
        }
        if (!is_string($type)) {
            throw new \InvalidArgumentException('Type must be a string');
        }
        if (!$type) {
            throw new \InvalidArgumentException('Type can\'t be empty');
        }
        $this->messages[$type][] = $message;

        return $this;
    }
680277
protected function add($type, $message, ...$text): void
    {
        $this->getMessagesStore()[$type][] = Translator::translate($message, ...$text);
    }
303147
public function addFile(\google\protobuf\compiler\CodeGeneratorResponse\File $value)
    {
        if ($this->file === null) {
            $this->file = new \Protobuf\MessageCollection();
        }

        $this->file->add($value);
    }