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