✏️ 编辑:DisputedPaymentBuilder.php
路径:
/home/forge/woocommerce-square/vendor/square/square/src/Models/Builders/DisputedPaymentBuilder.php
大小:1.13 KB · 修改:2025-12-23 20:26:26 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php declare(strict_types=1); namespace Square\Models\Builders; use Core\Utils\CoreHelper; use Square\Models\DisputedPayment; /** * Builder for model DisputedPayment * * @see DisputedPayment */ class DisputedPaymentBuilder { /** * @var DisputedPayment */ private $instance; private function __construct(DisputedPayment $instance) { $this->instance = $instance; } /** * Initializes a new Disputed Payment Builder object. */ public static function init(): self { return new self(new DisputedPayment()); } /** * Sets payment id field. * * @param string|null $value */ public function paymentId(?string $value): self { $this->instance->setPaymentId($value); return $this; } /** * Unsets payment id field. */ public function unsetPaymentId(): self { $this->instance->unsetPaymentId(); return $this; } /** * Initializes a new Disputed Payment object. */ public function build(): DisputedPayment { return CoreHelper::clone($this->instance); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF