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