!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.18.0. PHP/7.4.29 

uname -a: Linux ip-172-31-23-220 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/sendgrid-bk/lib/mail/   drwxrwxr-x
Free 39.77 GB of 48.28 GB (82.39%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Asm.php (4.59 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * This helper builds the Asm object for a /mail/send API call
 */

namespace SendGrid\Mail;

use 
SendGrid\Helper\Assert;

/**
 * This class is used to construct a Asm object for the /mail/send API call
 *
 * @package SendGrid\Mail
 */
class Asm implements \JsonSerializable
{
    
/** @var $group_id int The unsubscribe group to associate with this email */
    
private $group_id;
    
/**
     * @var $groups_to_display int[] An array containing the unsubscribe groups that you
     * would like to be displayed on the unsubscribe preferences page.
     */
    
private $groups_to_display;

    
/**
     * Optional constructor
     *
     * @param int|GroupId|null $group_id A GroupId object or the
     *                                   unsubscribe group to
     *                                   associate with this email
     * @param int[]|GroupsToDisplay|null $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 __construct(
        
$group_id null,
        
$groups_to_display null
    
) {
        if (isset(
$group_id)) {
            
$this->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
     */
    #[\ReturnTypeWillChange]
    
public function jsonSerialize()
    {
        return 
array_filter(
            [
                
'group_id' => $this->getGroupId(),
                
'groups_to_display' => $this->getGroupsToDisplay()
            ],
            function (
$value) {
                return 
$value !== null;
            }
        ) ?: 
null;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0064 ]--