HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/ai.naniguide.com/vendor/square/square/src/Models/Builders/PayoutFeeBuilder.php
<?php

declare(strict_types=1);

namespace Square\Models\Builders;

use Core\Utils\CoreHelper;
use Square\Models\Money;
use Square\Models\PayoutFee;

/**
 * Builder for model PayoutFee
 *
 * @see PayoutFee
 */
class PayoutFeeBuilder
{
    /**
     * @var PayoutFee
     */
    private $instance;

    private function __construct(PayoutFee $instance)
    {
        $this->instance = $instance;
    }

    /**
     * Initializes a new payout fee Builder object.
     */
    public static function init(): self
    {
        return new self(new PayoutFee());
    }

    /**
     * Sets amount money field.
     */
    public function amountMoney(?Money $value): self
    {
        $this->instance->setAmountMoney($value);
        return $this;
    }

    /**
     * Sets effective at field.
     */
    public function effectiveAt(?string $value): self
    {
        $this->instance->setEffectiveAt($value);
        return $this;
    }

    /**
     * Unsets effective at field.
     */
    public function unsetEffectiveAt(): self
    {
        $this->instance->unsetEffectiveAt();
        return $this;
    }

    /**
     * Sets type field.
     */
    public function type(?string $value): self
    {
        $this->instance->setType($value);
        return $this;
    }

    /**
     * Initializes a new payout fee object.
     */
    public function build(): PayoutFee
    {
        return CoreHelper::clone($this->instance);
    }
}