mail/Footer.php

sendgrid-php · lib/mail/Footer.php · php · MIT
email

Builds a Footer object for SendGrid mail API, handling enable flag, text, and HTML content.

// Source: https://github.com/sendgrid/sendgrid-php | License: MIT | Copyright 2023, Twilio SendGrid, Inc. <help@twilio.com>
// Provided via justclaw.it.com; keep this notice with the code.
<?php
/**
 * This helper builds the Footer object for a /mail/send API call
 */

namespace SendGrid\Mail;

use SendGrid\Helper\Assert;

/**
 * This class is used to construct a Footer object for the /mail/send API call
 *
 * @package SendGrid\Mail
 */
class Footer implements \JsonSerializable
{
    /** @var $enable bool Indicates if this setting is enabled */
    private $enable;
    /** @var $text string The plain text content of your footer */
    private $text;
    /** @var $html string The HTML content of your footer */
    private $html;

    /**
     * Optional constructor
     *
     * @param boo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key