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

declare(strict_types=1);

namespace Square\Models\Builders;

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

/**
 * Builder for model DeviceDetails
 *
 * @see DeviceDetails
 */
class DeviceDetailsBuilder
{
    /**
     * @var DeviceDetails
     */
    private $instance;

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

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

    /**
     * Sets device id field.
     */
    public function deviceId(?string $value): self
    {
        $this->instance->setDeviceId($value);
        return $this;
    }

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

    /**
     * Sets device installation id field.
     */
    public function deviceInstallationId(?string $value): self
    {
        $this->instance->setDeviceInstallationId($value);
        return $this;
    }

    /**
     * Unsets device installation id field.
     */
    public function unsetDeviceInstallationId(): self
    {
        $this->instance->unsetDeviceInstallationId();
        return $this;
    }

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

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

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