HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/ai.naniguide.com/vendor/square/square/src/Models/Builders/InventoryCountBuilder.php
<?php

declare(strict_types=1);

namespace Square\Models\Builders;

use Core\Utils\CoreHelper;
use Square\Models\InventoryCount;

/**
 * Builder for model InventoryCount
 *
 * @see InventoryCount
 */
class InventoryCountBuilder
{
    /**
     * @var InventoryCount
     */
    private $instance;

    private function __construct(InventoryCount $instance)
    {
        $this->instance = $instance;
    }

    /**
     * Initializes a new inventory count Builder object.
     */
    public static function init(): self
    {
        return new self(new InventoryCount());
    }

    /**
     * Sets catalog object id field.
     */
    public function catalogObjectId(?string $value): self
    {
        $this->instance->setCatalogObjectId($value);
        return $this;
    }

    /**
     * Unsets catalog object id field.
     */
    public function unsetCatalogObjectId(): self
    {
        $this->instance->unsetCatalogObjectId();
        return $this;
    }

    /**
     * Sets catalog object type field.
     */
    public function catalogObjectType(?string $value): self
    {
        $this->instance->setCatalogObjectType($value);
        return $this;
    }

    /**
     * Unsets catalog object type field.
     */
    public function unsetCatalogObjectType(): self
    {
        $this->instance->unsetCatalogObjectType();
        return $this;
    }

    /**
     * Sets state field.
     */
    public function state(?string $value): self
    {
        $this->instance->setState($value);
        return $this;
    }

    /**
     * Sets location id field.
     */
    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 quantity field.
     */
    public function quantity(?string $value): self
    {
        $this->instance->setQuantity($value);
        return $this;
    }

    /**
     * Unsets quantity field.
     */
    public function unsetQuantity(): self
    {
        $this->instance->unsetQuantity();
        return $this;
    }

    /**
     * Sets calculated at field.
     */
    public function calculatedAt(?string $value): self
    {
        $this->instance->setCalculatedAt($value);
        return $this;
    }

    /**
     * Sets is estimated field.
     */
    public function isEstimated(?bool $value): self
    {
        $this->instance->setIsEstimated($value);
        return $this;
    }

    /**
     * Initializes a new inventory count object.
     */
    public function build(): InventoryCount
    {
        return CoreHelper::clone($this->instance);
    }
}