JEMBOT MAWOT Bypass Shell

Current Path : /home/cinepatreb/billetterie/modules/mollie/subscription/DTO/
Upload File :
Current File : /home/cinepatreb/billetterie/modules/mollie/subscription/DTO/CreateMandateData.php

<?php
/**
 * Mollie       https://www.mollie.nl
 *
 * @author      Mollie B.V. <info@mollie.nl>
 * @copyright   Mollie B.V.
 * @license     https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
 *
 * @see        https://github.com/mollie/PrestaShop
 * @codingStandardsIgnoreStart
 */

declare(strict_types=1);

namespace Mollie\Subscription\DTO;

use JsonSerializable;
use Mollie\Subscription\Config\Config;
use Webmozart\Assert\Assert;

if (!defined('_PS_VERSION_')) {
    exit;
}

class CreateMandateData implements JsonSerializable
{
    /**
     * one of MandateMethod::class methods
     *
     * @var string
     */
    private $method;

    /** @var string */
    private $customerName;

    /** @var string */
    private $customerId;

    public function __construct(
        string $customerId,
        string $method,
        string $customerName
    ) {
        Assert::inArray($method, Config::getAvailableMandateMethods());
        $this->customerId = $customerId;
        $this->method = $method;
        $this->customerName = $customerName;
    }

    public function getCustomerId(): string
    {
        return $this->customerId;
    }

    public function jsonSerialize(): array
    {
        return [
            'method' => $this->method,
            'consumerName' => $this->customerName,
        ];
    }
}

xxxxx1.0, XXX xxxx