%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php /** * This helper builds the SendAt object for a /mail/send API call * * PHP Version - 5.6, 7.0, 7.1, 7.2 * * @package SendGrid\Mail * @author Elmer Thomas <dx@sendgrid.com> * @copyright 2018 SendGrid * @license https://opensource.org/licenses/MIT The MIT License * @version GIT: <git_id> * @link http://packagist.org/packages/sendgrid/sendgrid */ namespace SendGrid\Mail; /** * This class is used to construct a SendAt object for the /mail/send API call * * @package SendGrid\Mail */ class SendAt implements \JsonSerializable { /** * @var $send_at int A unix timestamp allowing you to specify when you want your email * to be delivered. This may be overridden by the personalizations[x].send_at * parameter. You can't schedule more than 72 hours in advance. If you have * the flexibility, it's better to schedule mail for off-peak times. Most * emails are scheduled and sent at the top of the hour or half hour. * Scheduling email to avoid those times (for example, scheduling at 10:53) can * result in lower deferral rates because it won't be going through our servers * at the same times as everyone else's mail */ private $send_at; /** * Optional constructor * * @param int|null $send_at A unix timestamp allowing you to specify when you * want your email to be delivered. This may be * overridden by the personalizations[x].send_at * parameter. You can't schedule more than 72 hours * in advance. If you have the flexibility, it's better * to schedule mail for off-peak times. Most emails are * scheduled and sent at the top of the hour or half * hour. Scheduling email to avoid those times (for * example, scheduling at 10:53) can result in lower * deferral rates because it won't be going through * our servers at the same times as everyone else's mail */ public function __construct($send_at=null) { if (isset($send_at)) { $this->setSendAt($send_at); } } /** * Add the send at value to a SendAt object * * @param int $send_at A unix timestamp allowing you to specify when you * want your email to be delivered. This may be * overridden by the personalizations[x].send_at * parameter. You can't schedule more than 72 hours * in advance. If you have the flexibility, it's better * to schedule mail for off-peak times. Most emails are * scheduled and sent at the top of the hour or half * hour. Scheduling email to avoid those times (for * example, scheduling at 10:53) can result in lower * deferral rates because it won't be going through * our servers at the same times as everyone else's mail * * @throws TypeException */ public function setSendAt($send_at) { if (!is_int($send_at)) { throw new TypeException('$send_at must be of type int.'); } $this->send_at = $send_at; } /** * Retrieve the send at value from a SendAt object * * @return int */ public function getSendAt() { return $this->send_at; } /** * Return an array representing a SendAt object for the SendGrid API * * @return int */ public function jsonSerialize() { return $this->getSendAt(); } }