private function craft_new_msg($type, $jobId, $client, $data)
    {
        // Add client info to data
        $data->{'client'} = $client;
        // Build msg to send out
        $msg = array(
            'time'   => microtime(true),
            'type'   => $type,
            'jobId'  => $jobId,
            'data'   => $data
        );

        return $msg;
    }
private function craft_new_msg($type, $jobId, $client, $data)
    {
        // Add client info to data
        $data->{'client'} = $client;
        // Build msg to send out
        $msg = array(
            'time'   => microtime(true),
            'type'   => $type,
            'jobId'  => $jobId,
            'data'   => $data
        );

        return $msg;
    }
private function craft_new_msg ( $ type , $ jobId , $ client , $ data ) { // Add client info to data $ data -> { 'client' } = $ client ; // Build msg to send out $ msg = array ( 'time' => microtime ( true ) , 'type' => $ type , 'jobId' => $ jobId , 'data' => $ data ) ; return $ msg ; }
Craft the object to be sent out to SQS

@param string $type Type of CPE command you send
@param string $jobId Job ID for the command
@param string $data Data payload to be sent out
Craft the object to be sent out to SQS