✏️ 编辑:ShiftWageBuilder.php
路径:
/home/forge/woocommerce-square/vendor/square/square/src/Models/Builders/ShiftWageBuilder.php
大小:1.87 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\ShiftWage; /** * Builder for model ShiftWage * * @see ShiftWage */ class ShiftWageBuilder { /** * @var ShiftWage */ private $instance; private function __construct(ShiftWage $instance) { $this->instance = $instance; } /** * Initializes a new Shift Wage Builder object. */ public static function init(): self { return new self(new ShiftWage()); } /** * Sets title field. * * @param string|null $value */ public function title(?string $value): self { $this->instance->setTitle($value); return $this; } /** * Unsets title field. */ public function unsetTitle(): self { $this->instance->unsetTitle(); return $this; } /** * Sets hourly rate field. * * @param Money|null $value */ public function hourlyRate(?Money $value): self { $this->instance->setHourlyRate($value); return $this; } /** * Sets job id field. * * @param string|null $value */ public function jobId(?string $value): self { $this->instance->setJobId($value); return $this; } /** * Sets tip eligible field. * * @param bool|null $value */ public function tipEligible(?bool $value): self { $this->instance->setTipEligible($value); return $this; } /** * Unsets tip eligible field. */ public function unsetTipEligible(): self { $this->instance->unsetTipEligible(); return $this; } /** * Initializes a new Shift Wage object. */ public function build(): ShiftWage { return CoreHelper::clone($this->instance); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF