NSWDPC\Messaging\Mailgun\SendJob
- Author: James Ellis <james.ellis@dpc.nsw.gov.au> Queued Job for sending messages to the Mailgun API
Synopsis
class SendJob
extends AbstractQueuedJob
{
- // members
- protected integer $totalSteps = 1;
- protected Message $connector;
- // methods
- public void getJobType()
- public void getTitle()
- public void getSignature()
- public void __construct()
- public void process()
Hierarchy
Extends
- Symbiote\QueuedJobs\Services\AbstractQueuedJob
Members
protected
- $connector — \NSWDPC\Messaging\Mailgun\Connector\Message
- $totalSteps
—
int
Total steps for this job
Methods
public
- __construct() — Create the job
- getJobType() — Job type
- getSignature() — The job signature is a combination of the API domain and the job parameters
- getTitle()
- process() — Attempt to send the message via the Mailgun API