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/PhaseBuilder.php
<?php

declare(strict_types=1);

namespace Square\Models\Builders;

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

/**
 * Builder for model Phase
 *
 * @see Phase
 */
class PhaseBuilder
{
    /**
     * @var Phase
     */
    private $instance;

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

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

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

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

    /**
     * Sets ordinal field.
     */
    public function ordinal(?int $value): self
    {
        $this->instance->setOrdinal($value);
        return $this;
    }

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

    /**
     * Sets order template id field.
     */
    public function orderTemplateId(?string $value): self
    {
        $this->instance->setOrderTemplateId($value);
        return $this;
    }

    /**
     * Unsets order template id field.
     */
    public function unsetOrderTemplateId(): self
    {
        $this->instance->unsetOrderTemplateId();
        return $this;
    }

    /**
     * Sets plan phase uid field.
     */
    public function planPhaseUid(?string $value): self
    {
        $this->instance->setPlanPhaseUid($value);
        return $this;
    }

    /**
     * Unsets plan phase uid field.
     */
    public function unsetPlanPhaseUid(): self
    {
        $this->instance->unsetPlanPhaseUid();
        return $this;
    }

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