<?php

declare (strict_types=1);
/*
 * PaypalServerSdkLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */
namespace FormGent\PaypalServerSdkLib\Models\Builders;

use FormGent\Core\Utils\CoreHelper;
use FormGent\PaypalServerSdkLib\Models\VaultInstruction;
/**
 * Builder for model VaultInstruction
 *
 * @see VaultInstruction
 */
class VaultInstructionBuilder
{
    /**
     * @var VaultInstruction
     */
    private $instance;
    private function __construct(VaultInstruction $instance)
    {
        $this->instance = $instance;
    }
    /**
     * Initializes a new Vault Instruction Builder object.
     *
     * @param string $storeInVault
     */
    public static function init(string $storeInVault) : self
    {
        return new self(new VaultInstruction($storeInVault));
    }
    /**
     * Initializes a new Vault Instruction object.
     */
    public function build() : VaultInstruction
    {
        return CoreHelper::clone($this->instance);
    }
}
