Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : PaymentSettings.php
<?php

/**
 * @copyright © TMS-Plugins. All rights reserved.
 * @licence   See LICENCE.md for license details.
 */

namespace AmeliaBooking\Domain\Entity\Settings;

/**
 * Class PaymentSettings
 *
 * @package AmeliaBooking\Domain\Entity\Settings
 */
class PaymentSettings
{
    /** @var bool */
    private $onSite;

    /** @var PaymentPayPalSettings */
    private $payPalSettings;

    /** @var PaymentStripeSettings */
    private $stripeSettings;

    /** @var PaymentWooCommerceSettings */
    private $wooCommerceSettings;

    /** @var PaymentMollieSettings */
    private $mollieSettings;

    /** @var PaymentSquareSettings */
    private $squareSettings;

    /** @var PaymentLinksSettings */
    private $paymentLinksSettings;

    /**
     * @return bool
     */
    public function getOnSite()
    {
        return $this->onSite;
    }

    /**
     * @param bool $onSite
     */
    public function setOnSite($onSite)
    {
        $this->onSite = $onSite;
    }

    /**
     * @return PaymentPayPalSettings
     */
    public function getPayPalSettings()
    {
        return $this->payPalSettings;
    }

    /**
     * @param PaymentPayPalSettings $payPalSettings
     */
    public function setPayPalSettings($payPalSettings)
    {
        $this->payPalSettings = $payPalSettings;
    }

    /**
     * @return PaymentStripeSettings
     */
    public function getStripeSettings()
    {
        return $this->stripeSettings;
    }

    /**
     * @param PaymentStripeSettings $stripeSettings
     */
    public function setStripeSettings($stripeSettings)
    {
        $this->stripeSettings = $stripeSettings;
    }

    /**
     * @return PaymentWooCommerceSettings
     */
    public function getWooCommerceSettings()
    {
        return $this->wooCommerceSettings;
    }

    /**
     * @param PaymentWooCommerceSettings $wooCommerceSettings
     */
    public function setWooCommerceSettings($wooCommerceSettings)
    {
        $this->wooCommerceSettings = $wooCommerceSettings;
    }

    /**
     * @return PaymentMollieSettings
     */
    public function getMollieSettings()
    {
        return $this->mollieSettings;
    }

    /**
     * @param PaymentMollieSettings $mollieSettings
     */
    public function setMollieSettings($mollieSettings)
    {
        $this->mollieSettings = $mollieSettings;
    }

    /**
     * @return PaymentSquareSettings
     */
    public function getSquareSettings()
    {
        return $this->squareSettings;
    }

    /**
     * @param PaymentSquareSettings $squareSettings
     */
    public function setSquareSettings($squareSettings)
    {
        $this->squareSettings = $squareSettings;
    }


    /**
     * @return PaymentLinksSettings
     */
    public function getPaymentLinksSettings()
    {
        return $this->paymentLinksSettings;
    }

    /**
     * @param PaymentLinksSettings $paymentLinksSettings
     */
    public function setPaymentLinksSettings(PaymentLinksSettings $paymentLinksSettings)
    {
        $this->paymentLinksSettings = $paymentLinksSettings;
    }


    /**
     * @return array
     */
    public function toArray()
    {
        return [
            'onSite' => $this->onSite,
            'payPal' => $this->getPayPalSettings() ? $this->getPayPalSettings()->toArray() : null,
            'stripe' => $this->getStripeSettings() ? $this->getStripeSettings()->toArray() : null,
            'wc'     => $this->getWooCommerceSettings() ? $this->getWooCommerceSettings()->toArray() : null,
            'mollie' => $this->getMollieSettings() ? $this->getMollieSettings()->toArray() : null,
            'square' => $this->getSquareSettings() ? $this->getSquareSettings()->toArray() : null,
            'paymentLinks' => $this->getPaymentLinksSettings() ? $this->getPaymentLinksSettings()->toArray() : null,
        ];
    }
}
© 2026 GrazzMean-Shell