original_string: public function enqueue(QueueItem $item)
      {
          $this->client->sendMessage([
              'QueueUrl' => $this->url,
              'MessageBody' => json_encode([
                  'type' => $item->getType(),
                  'id' => $item->getId(),
              ]),
          ]);
      }
code: public function enqueue(QueueItem $item)
      {
          $this->client->sendMessage([
              'QueueUrl' => $this->url,
              'MessageBody' => json_encode([
                  'type' => $item->getType(),
                  'id' => $item->getId(),
              ]),
          ]);
      }
code_tokens: public function enqueue ( QueueItem $ item ) { $ this -> client -> sendMessage ( [ 'QueueUrl' => $ this -> url , 'MessageBody' => json_encode ( [ 'type' => $ item -> getType ( ) , 'id' => $ item -> getId ( ) , ] ) , ] ) ; }
docstring: Adds item to the queue.
docstring_tokens: Adds item to the queue .