<?php

declare(strict_types=1);

/*
 * PaypalServerSdkLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

namespace PaypalServerSdkLib\Models\Builders;

use Core\Utils\CoreHelper;
use PaypalServerSdkLib\Models\SuspendSubscription;

/**
 * Builder for model SuspendSubscription
 *
 * @see SuspendSubscription
 */
class SuspendSubscriptionBuilder
{
    /**
     * @var SuspendSubscription
     */
    private $instance;

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

    /**
     * Initializes a new Suspend Subscription Builder object.
     *
     * @param string $reason
     */
    public static function init(string $reason): self
    {
        return new self(new SuspendSubscription($reason));
    }

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