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

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

        $this->connection->modifyAckDeadline($options + [
            'subscription' => $this->name,
            'ackIds' => $this->getMessageAckIds($messages),
            'ackDeadlineSeconds' => $seconds
        ]);
    }
public function modifyAckDeadlineBatch ( array $ messages , $ seconds , array $ options = [ ] ) { $ this -> validateBatch ( $ messages , Message :: class ) ; $ this -> connection -> modifyAckDeadline ( $ options + [ 'subscription' => $ this -> name , 'ackIds' => $ this -> getMessageAckIds ( $ messages ) , 'ackDeadlineSeconds' => $ seconds ] ) ; }
Set the acknowledge deadline for multiple ackIds.

Use {@see Google\Cloud\PubSub\Subscription::modifyAckDeadline()} to
modify the ack deadline for a single message.

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

// Set the ack deadline to three seconds from now for every message
$subscription->modifyAckDeadlineBatch($messages, 3);

// Delay execution, or make a sandwich or something.
sleep(2);

// Now we'll acknowledge
$subscription->acknowledgeBatch($messages);
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions/modifyAckDeadline Modify Ack Deadline
@codingStandardsIgnoreEnd

@param Message[] $messages An array of messages
@param int $seconds The new ack deadline with respect to the time
this request was sent to the Pub/Sub system. Must be >= 0. For
example, if the value is 10, the new ack deadline will expire 10
seconds after the ModifyAckDeadline call was made. Specifying
zero may immediately make the message available for another pull
request.
@param array $options [optional] Configuration Options
@return void
Set the acknowledge deadline for multiple ackIds .