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