/home/techb158/immovalet.com/vendor/sendgrid/sendgrid/lib/mail
NameSizeModeActions
Asm.php46690644editdlrm
Attachment.php58880644editdlrm
BatchId.php15740644editdlrm
Bcc.php2810644editdlrm
BccSettings.php25150644editdlrm
BypassListManagement.php19100644editdlrm
Category.php17180644editdlrm
Cc.php2780644editdlrm
ClickTracking.php26860644editdlrm
Content.php28950644editdlrm
CustomArg.php26480644editdlrm
EmailAddress.php49990644editdlrm
Footer.php30270644editdlrm
From.php2840644editdlrm
Ganalytics.php64270644editdlrm
GroupId.php14480644editdlrm
GroupsToDisplay.php32070644editdlrm
Header.php23340644editdlrm
HtmlContent.php5310644editdlrm
IpPoolName.php19800644editdlrm
Mail.php631140644editdlrm
MailSettings.php83210644editdlrm
MimeType.php3190644editdlrm
OpenTracking.php36210644editdlrm
Personalization.php79120644editdlrm
PlainTextContent.php5470644editdlrm
ReplyTo.php2930644editdlrm
SandBoxMode.php16030644editdlrm
Section.php22270644editdlrm
SendAt.php35760644editdlrm
SpamCheck.php42900644editdlrm
Subject.php13700644editdlrm
SubscriptionTracking.php67540644editdlrm
Substitution.php29640644editdlrm
TemplateId.php23130644editdlrm
To.php2780644editdlrm
TrackingSettings.php92310644editdlrm
TypeException.php770644editdlrm
Edit: /home/techb158/immovalet.com/vendor/sendgrid/sendgrid/lib/mail/Asm.php (4669B)
setGroupId($group_id); } if (isset($groups_to_display)) { $this->setGroupsToDisplay($groups_to_display); } } /** * Add the group id to a Asm object * * @param int|GroupId $group_id The unsubscribe group to associate with this * email * * @throws \SendGrid\Mail\TypeException */ public function setGroupId($group_id) { if ($group_id instanceof GroupId) { $this->group_id = $group_id->getGroupId(); } else { Assert::integer( $group_id, 'group_id', 'Value "$group_id" must be an instance of SendGrid\Mail\GroupId or an integer.' ); $this->group_id = new GroupId($group_id); } } /** * Retrieve the GroupId object from a Asm object * * The unsubscribe group to associate with this email * * @return int */ public function getGroupId() { return $this->group_id; } /** * Add the groups to display id(s) to a Asm object * * @param int[]|GroupsToDisplay $groups_to_display A GroupsToDisplay * object or an array * containing the * unsubscribe groups * that you would like * to be displayed * on the unsubscribe * preferences page. * * @throws \SendGrid\Mail\TypeException */ public function setGroupsToDisplay($groups_to_display) { if ($groups_to_display instanceof GroupsToDisplay) { $this->groups_to_display = $groups_to_display->getGroupsToDisplay(); } else { Assert::isArray( $groups_to_display, 'groups_to_display', 'Value "$groups_to_display" must be an instance of SendGrid\Mail\GroupsToDisplay or an array.' ); Assert::maxItems($groups_to_display, 'groups_to_display', 25); $this->groups_to_display = new GroupsToDisplay($groups_to_display); } } /** * Retrieve the groups to display id(s) from a Asm object * * @return int[] */ public function getGroupsToDisplay() { return $this->groups_to_display; } /** * Return an array representing a Asm object for the Twilio SendGrid API * * @return null|array */ public function jsonSerialize() { return array_filter( [ 'group_id' => $this->getGroupId(), 'groups_to_display' => $this->getGroupsToDisplay() ], function ($value) { return $value !== null; } ) ?: null; } }