PubSub/src/Subscription.php
public function acknowledgeBatch(array $messages, array $options = [])
    {
        $this->validateBatch($messages, Message::class);

        $this->connection->acknowledge($options + [
            'subscription' => $this->name,
            'ackIds' => $this->getMessageAckIds($messages)
        ]);
    }
public function acknowledgeBatch(array $messages, array $options = [])
    {
        $this->validateBatch($messages, Message::class);

        $this->connection->acknowledge($options + [
            'subscription' => $this->name,
            'ackIds' => $this->getMessageAckIds($messages)
        ]);
    }
public function acknowledgeBatch ( array $ messages , array $ options = [ ] ) { $ this -> validateBatch ( $ messages , Message :: class ) ; $ this -> connection -> acknowledge ( $ options + [ 'subscription' => $ this -> name , 'ackIds' => $ this -> getMessageAckIds ( $ messages ) ] ) ; }
Acknowledge receipt of multiple messages at once.

Use {@see Google\Cloud\PubSub\Subscription::acknowledge()} to acknowledge
a single message.

Example:
```
$messages = $subscription->pull();

$subscription->acknowledgeBatch($messages);
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions/acknowledge Acknowledge Message
@codingStandardsIgnoreEnd

@param Message[] $messages An array of messages
@param array $options Configuration Options
@return void
Acknowledge receipt of multiple messages at once .