\Clx\Xms\ApiMtBatchSmsCreate

Describes parameters available during batch creation.

We can create two kinds of batches, textual and binary, described in the child classes MtBatchTextSmsCreate and MtBatchBinarySmsCreate, respectively.

Summary

Methods
Properties
Constants
getRecipients()
setRecipients()
getSender()
setSender()
getDeliveryReport()
setDeliveryReport()
getSendAt()
setSendAt()
getExpireAt()
setExpireAt()
getCallbackUrl()
setCallbackUrl()
getTags()
setTags()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getRecipients()

getRecipients() : array<mixed,string>

Get the batch recipients.

Returns

array<mixed,string> —

one or more MSISDNs

setRecipients()

setRecipients(array<mixed,string>  $recipients) : void

Set the batch recipients.

Parameters

array<mixed,string> $recipients

one or more MSISDNs

getSender()

getSender() : string

Get the batch sender.

Returns

string —

a short code or long number

setSender()

setSender(string  $sender) : void

Set the batch sender.

Parameters

string $sender

a short code or long number

getDeliveryReport()

getDeliveryReport() : \Clx\Xms\Api\ReportType

Get the type of delivery report to use for this batch.

Returns

\Clx\Xms\Api\ReportType

the report type

setDeliveryReport()

setDeliveryReport(\Clx\Xms\Api\ReportType  $deliveryReport) : void

Set the type of delivery report to use for this batch.

Parameters

\Clx\Xms\Api\ReportType $deliveryReport

the report type

getSendAt()

getSendAt() : \DateTime

Get the time at which this batch should be sent.

Returns

\DateTime —

the send date and time

setSendAt()

setSendAt(\DateTime  $sendAt) : void

Set the time at which this batch should be sent.

Parameters

\DateTime $sendAt

the send date and time

getExpireAt()

getExpireAt() : \DateTime

Get the time at which this batch should expire.

Returns

\DateTime —

the expiry date and time

setExpireAt()

setExpireAt(\DateTime  $expireAt) : void

Set the time at which this batch should expire.

Parameters

\DateTime $expireAt

the expiry date and time

getCallbackUrl()

getCallbackUrl() : string

Get the URL to which callbacks should be sent.

Returns

string —

a valid URL

setCallbackUrl()

setCallbackUrl(string  $callbackUrl) : void

Set the URL to which callbacks should be sent.

Parameters

string $callbackUrl

a valid URL

getTags()

getTags() : array<mixed,string>

Get the initial set of tags to give the batch.

Returns

array<mixed,string> —

batch tags

setTags()

setTags(array<mixed,string>  $tags) : void

Set the initial set of tags to give the batch.

Parameters

array<mixed,string> $tags

batch tags