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