src/Services/SqsClient.php
public function sendDelayedMessage(string $message, int $delay = 0)
    {
        $delay = max(0, $delay);
        $delay = min(900, $delay);
        $this->sqsClient->sendMessage([
            'DelaySeconds' => $delay,
            'MessageBody'  => $message,
            'QueueUrl'     => $this->queueUrl,
        ]);
    }
public function sendDelayedMessage(string $message, int $delay = 0)
    {
        $delay = max(0, $delay);
        $delay = min(900, $delay);
        $this->sqsClient->sendMessage([
            'DelaySeconds' => $delay,
            'MessageBody'  => $message,
            'QueueUrl'     => $this->queueUrl,
        ]);
    }
public function sendDelayedMessage ( string $ message , int $ delay = 0 ) { $ delay = max ( 0 , $ delay ) ; $ delay = min ( 900 , $ delay ) ; $ this -> sqsClient -> sendMessage ( [ 'DelaySeconds' => $ delay , 'MessageBody' => $ message , 'QueueUrl' => $ this -> queueUrl , ] ) ; }
Sends a message to AWS SQS service

@param string $message The content of the message, must be text or a json_encoded array
@param int    $delay   Delay in seconds. Min: 0 Max: 900 (15 minutes)
Sends a message to AWS SQS service