File "BulkDeleteOrderCustomAttributesRequestDeleteCustomAttributeBuilder.php"

Full path: /home/capoeirajd/www/wp-content/plugins/wpforms-lite/vendor_prefixed/square/square/src/Models/Builders/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttributeBuilder.php
File size: 1.49 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php

declare (strict_types=1);
namespace WPForms\Vendor\Square\Models\Builders;

use WPForms\Vendor\Core\Utils\CoreHelper;
use WPForms\Vendor\Square\Models\BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute;
/**
 * Builder for model BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute
 *
 * @see BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute
 */
class BulkDeleteOrderCustomAttributesRequestDeleteCustomAttributeBuilder
{
    /**
     * @var BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute
     */
    private $instance;
    private function __construct(BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute $instance)
    {
        $this->instance = $instance;
    }
    /**
     * Initializes a new Bulk Delete Order Custom Attributes Request Delete Custom Attribute Builder object.
     *
     * @param string $orderId
     */
    public static function init(string $orderId) : self
    {
        return new self(new BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute($orderId));
    }
    /**
     * Sets key field.
     *
     * @param string|null $value
     */
    public function key(?string $value) : self
    {
        $this->instance->setKey($value);
        return $this;
    }
    /**
     * Initializes a new Bulk Delete Order Custom Attributes Request Delete Custom Attribute object.
     */
    public function build() : BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute
    {
        return CoreHelper::clone($this->instance);
    }
}