/var/www/doncode.com.ua/www/lib/sendgrid/lib/mail
NameSizeModeActions
Asm.php46980644editdlrm
Attachment.php59170644editdlrm
BatchId.php16030644editdlrm
Bcc.php2810644editdlrm
BccSettings.php25440644editdlrm
BypassBounceManagement.php19940644editdlrm
BypassListManagement.php19390644editdlrm
BypassSpamManagement.php19820644editdlrm
BypassUnsubscribeManagement.php21220644editdlrm
Category.php17470644editdlrm
Cc.php2780644editdlrm
ClickTracking.php27150644editdlrm
Content.php29320644editdlrm
CustomArg.php26770644editdlrm
EmailAddress.php50280644editdlrm
Footer.php30560644editdlrm
From.php2840644editdlrm
Ganalytics.php64560644editdlrm
GroupId.php14770644editdlrm
GroupsToDisplay.php32360644editdlrm
Header.php23630644editdlrm
HtmlContent.php5310644editdlrm
IpPoolName.php20090644editdlrm
Mail.php697390644editdlrm
MailSettings.php137510644editdlrm
MimeType.php3190644editdlrm
OpenTracking.php36500644editdlrm
Personalization.php84080644editdlrm
PlainTextContent.php5470644editdlrm
README.md5130644editdlrm
ReplyTo.php2930644editdlrm
SandBoxMode.php16320644editdlrm
Section.php22560644editdlrm
SendAt.php36050644editdlrm
SpamCheck.php43190644editdlrm
Subject.php14070644editdlrm
SubscriptionTracking.php67830644editdlrm
Substitution.php29930644editdlrm
TemplateId.php23420644editdlrm
To.php2780644editdlrm
TrackingSettings.php92600644editdlrm
TypeException.php770644editdlrm
Edit: /var/www/doncode.com.ua/www/lib/sendgrid/lib/mail/Ganalytics.php (6456B)
setEnable($enable); } if (isset($utm_source)) { $this->setCampaignSource($utm_source); } if (isset($utm_medium)) { $this->setCampaignMedium($utm_medium); } if (isset($utm_term)) { $this->setCampaignTerm($utm_term); } if (isset($utm_content)) { $this->setCampaignContent($utm_content); } if (isset($utm_campaign)) { $this->setCampaignName($utm_campaign); } } /** * Update the enable setting on a Ganalytics object * * @param bool $enable Indicates if this setting is enabled * * @throws \SendGrid\Mail\TypeException */ public function setEnable($enable) { Assert::boolean($enable, 'enable'); $this->enable = $enable; } /** * Retrieve the enable setting on a Ganalytics object * * @return bool */ public function getEnable() { return $this->enable; } /** * Add the campaign source to a Ganalytics object * * @param string $utm_source Name of the referrer source. (e.g. * Google, SomeDomain.com, or Marketing Email) * * @throws \SendGrid\Mail\TypeException */ public function setCampaignSource($utm_source) { Assert::string($utm_source, 'utm_source'); $this->utm_source = $utm_source; } /** * Return the campaign source from a Ganalytics object * * @return string */ public function getCampaignSource() { return $this->utm_source; } /** * Add the campaign medium to a Ganalytics object * * @param string $utm_medium Name of the marketing medium. (e.g. Email) * * @throws \SendGrid\Mail\TypeException */ public function setCampaignMedium($utm_medium) { Assert::string($utm_medium, 'utm_medium'); $this->utm_medium = $utm_medium; } /** * Return the campaign medium from a Ganalytics object * * @return string */ public function getCampaignMedium() { return $this->utm_medium; } /** * Add the campaign term to a Ganalytics object * * @param string $utm_term Used to identify any paid keywords * * @throws \SendGrid\Mail\TypeException */ public function setCampaignTerm($utm_term) { Assert::string($utm_term, 'utm_term'); $this->utm_term = $utm_term; } /** * Return the campaign term from a Ganalytics object * * @return string */ public function getCampaignTerm() { return $this->utm_term; } /** * Add the campaign content to a Ganalytics object * * @param string $utm_content Used to differentiate your campaign from * advertisements * * @throws \SendGrid\Mail\TypeException */ public function setCampaignContent($utm_content) { Assert::string($utm_content, 'utm_content'); $this->utm_content = $utm_content; } /** * Return the campaign content from a Ganalytics object * * @return string */ public function getCampaignContent() { return $this->utm_content; } /** * Add the campaign name to a Ganalytics object * * @param string $utm_campaign The name of the campaign * * @throws \SendGrid\Mail\TypeException */ public function setCampaignName($utm_campaign) { Assert::string($utm_campaign, 'utm_campaign'); $this->utm_campaign = $utm_campaign; } /** * Return the campaign name from a Ganalytics object * * @return string */ public function getCampaignName() { return $this->utm_campaign; } /** * Return an array representing a Ganalytics object for the Twilio SendGrid API * * @return null|array */ #[\ReturnTypeWillChange] public function jsonSerialize() { return array_filter( [ 'enable' => $this->getEnable(), 'utm_source' => $this->getCampaignSource(), 'utm_medium' => $this->getCampaignMedium(), 'utm_term' => $this->getCampaignTerm(), 'utm_content' => $this->getCampaignContent(), 'utm_campaign' => $this->getCampaignName() ], function ($value) { return $value !== null; } ) ?: null; } }