✏️ 编辑:PayoutFeeBuilder.php
路径:
/home/forge/woocommerce-square/vendor/square/square/src/Models/Builders/PayoutFeeBuilder.php
大小:1.52 KB · 修改:2025-12-23 20:26:26 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?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. * * @param Money|null $value */ public function amountMoney(?Money $value): self { $this->instance->setAmountMoney($value); return $this; } /** * Sets effective at field. * * @param string|null $value */ 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. * * @param string|null $value */ 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); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF