<?php

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

declare(strict_types=1);

namespace Dagger;

/**
 * A Unix or TCP/IP socket that can be mounted into a container.
 */
class Socket extends Client\AbstractObject implements Client\IdAble
{
    /**
     * A unique identifier for this Socket.
     */
    public function id(): SocketId
    {
        $leafQueryBuilder = new \Dagger\Client\QueryBuilder('id');
        return new \Dagger\SocketId((string)$this->queryLeaf($leafQueryBuilder, 'id'));
    }
}
