✏️ 编辑:OrderCreatedBuilder.php
路径:
/home/forge/woocommerce-square/vendor/square/square/src/Models/Builders/OrderCreatedBuilder.php
大小:2.09 KB · 修改:2025-12-23 20:26:26 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php declare(strict_types=1); namespace Square\Models\Builders; use Core\Utils\CoreHelper; use Square\Models\OrderCreated; /** * Builder for model OrderCreated * * @see OrderCreated */ class OrderCreatedBuilder { /** * @var OrderCreated */ private $instance; private function __construct(OrderCreated $instance) { $this->instance = $instance; } /** * Initializes a new Order Created Builder object. */ public static function init(): self { return new self(new OrderCreated()); } /** * Sets order id field. * * @param string|null $value */ public function orderId(?string $value): self { $this->instance->setOrderId($value); return $this; } /** * Unsets order id field. */ public function unsetOrderId(): self { $this->instance->unsetOrderId(); return $this; } /** * Sets version field. * * @param int|null $value */ public function version(?int $value): self { $this->instance->setVersion($value); return $this; } /** * Sets location id field. * * @param string|null $value */ public function locationId(?string $value): self { $this->instance->setLocationId($value); return $this; } /** * Unsets location id field. */ public function unsetLocationId(): self { $this->instance->unsetLocationId(); return $this; } /** * Sets state field. * * @param string|null $value */ public function state(?string $value): self { $this->instance->setState($value); return $this; } /** * Sets created at field. * * @param string|null $value */ public function createdAt(?string $value): self { $this->instance->setCreatedAt($value); return $this; } /** * Initializes a new Order Created object. */ public function build(): OrderCreated { return CoreHelper::clone($this->instance); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF