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

declare(strict_types=1);

namespace Square\Models\Builders;

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

/**
 * Builder for model CatalogImage
 *
 * @see CatalogImage
 */
class CatalogImageBuilder
{
    /**
     * @var CatalogImage
     */
    private $instance;

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

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

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

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

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

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

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

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

    /**
     * Sets photo studio order id field.
     */
    public function photoStudioOrderId(?string $value): self
    {
        $this->instance->setPhotoStudioOrderId($value);
        return $this;
    }

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

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