original_string: public function store(OutboxMessage $message)
      {
          $messageId = $message->getMessageId();
          if (isset($this->messages[$messageId])) {
              throw new InvalidArgumentException("Outbox message with ID '$messageId' already exists in storage.");
          }
  
          $this->messages[$messageId] = new InMemoryStoredMessage($messageId, $message->getTransportOperations());
          $this->lastMessageId = $messageId;
      }
code: public function store(OutboxMessage $message)
      {
          $messageId = $message->getMessageId();
          if (isset($this->messages[$messageId])) {
              throw new InvalidArgumentException("Outbox message with ID '$messageId' already exists in storage.");
          }
  
          $this->messages[$messageId] = new InMemoryStoredMessage($messageId, $message->getTransportOperations());
          $this->lastMessageId = $messageId;
      }
code_tokens: public function store ( OutboxMessage $ message ) { $ messageId = $ message -> getMessageId ( ) ; if ( isset ( $ this -> messages [ $ messageId ] ) ) { throw new InvalidArgumentException ( "Outbox message with ID '$messageId' already exists in storage." ) ; } $ this -> messages [ $ messageId ] = new InMemoryStoredMessage ( $ messageId , $ message -> getTransportOperations ( ) ) ; $ this -> lastMessageId = $ messageId ; }
docstring: Stores the message to enable deduplication and re-dispatching of transport operations.
  Throws an exception if a message with the same ID already exists.
  
  @param OutboxMessage $message
  
  @return void
docstring_tokens: Stores the message to enable deduplication and re - dispatching of transport operations . Throws an exception if a message with the same ID already exists .