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