<?php

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

declare(strict_types=1);

namespace Dagger;

/**
 * Module source that that originates from a path locally relative to an arbitrary directory.
 */
class LocalModuleSource extends Client\AbstractObject implements Client\IdAble
{
    /**
     * A unique identifier for this LocalModuleSource.
     */
    public function id(): LocalModuleSourceId
    {
        $leafQueryBuilder = new \Dagger\Client\QueryBuilder('id');
        return new \Dagger\LocalModuleSourceId((string)$this->queryLeaf($leafQueryBuilder, 'id'));
    }

    public function sourceSubpath(): string
    {
        $leafQueryBuilder = new \Dagger\Client\QueryBuilder('sourceSubpath');
        return (string)$this->queryLeaf($leafQueryBuilder, 'sourceSubpath');
    }
}
