<?php

/**
 * This class has been generated by dagger-php-sdk. DO NOT EDIT.
 */

declare(strict_types=1);

namespace Dagger;

/**
 * An interactive terminal that clients can connect to.
 */
class Terminal extends Client\AbstractObject implements Client\IdAble
{
    /**
     * A unique identifier for this Terminal.
     */
    public function id(): TerminalId
    {
        $leafQueryBuilder = new \Dagger\Client\QueryBuilder('id');
        return new \Dagger\TerminalId((string)$this->queryLeaf($leafQueryBuilder, 'id'));
    }

    /**
     * An http endpoint at which this terminal can be connected to over a websocket.
     */
    public function websocketEndpoint(): string
    {
        $leafQueryBuilder = new \Dagger\Client\QueryBuilder('websocketEndpoint');
        return (string)$this->queryLeaf($leafQueryBuilder, 'websocketEndpoint');
    }
}
