JEMBOT MAWOT Bypass Shell

Current Path : /home/cinepatreb/billetterie/modules/mollie/src/DTO/Object/
Upload File :
Current File : /home/cinepatreb/billetterie/modules/mollie/src/DTO/Object/Payment.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
 */

namespace Mollie\DTO\Object;

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

class Payment implements \JsonSerializable
{
    /** @var ?string */
    private $cardToken;
    /** @var string */
    private $webhookUrl;
    /** @var ?string */
    private $customerId;
    /** @var ?string */
    private $applePayPaymentToken;
    /** @var ?Company */
    private $company;

    /**
     * @return ?string
     */
    public function getCardToken(): ?string
    {
        return $this->cardToken;
    }

    /**
     * @maps cardToken
     */
    public function setCardToken(string $cardToken): void
    {
        $this->cardToken = $cardToken;
    }

    public function getWebhookUrl(): string
    {
        return $this->webhookUrl;
    }

    /**
     * @maps webhookUrl
     */
    public function setWebhookUrl(string $webhookUrl): void
    {
        $this->webhookUrl = $webhookUrl;
    }

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

    /**
     * @maps customerId
     */
    public function setCustomerId(string $customerId): void
    {
        $this->customerId = $customerId;
    }

    /**
     * @return ?string
     */
    public function getApplePayPaymentToken(): ?string
    {
        return $this->applePayPaymentToken;
    }

    /**
     * @maps applePayPaymentToken
     */
    public function setApplePayPaymentToken(string $applePayPaymentToken): void
    {
        $this->applePayPaymentToken = $applePayPaymentToken;
    }

    /**
     * @return ?Company
     */
    public function getCompany(): ?Company
    {
        return $this->company;
    }

    /**
     * @param \Mollie\DTO\Object\Company $company
     *
     * @maps company
     */
    public function setCompany(Company $company): void
    {
        $this->company = $company;
    }

    public function jsonSerialize()
    {
        $result = [];
        $result['cardToken'] = $this->getCardToken();
        $result['webhookUrl'] = $this->getWebhookUrl();
        $result['customerId'] = $this->getCustomerId();
        $result['applePayPaymentToken'] = $this->getApplePayPaymentToken();
        $result['company'] = $this->getCompany() ? $this->getCompany()->jsonSerialize() : null;

        return array_filter($result, static function ($val) {
            return $val !== null && $val !== '';
        });
    }
}

xxxxx1.0, XXX xxxx