<?php

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

declare(strict_types=1);

namespace Dagger;

/**
 * A value passed as a named argument to a function call.
 */
class FunctionCallArgValue extends Client\AbstractObject implements Client\IdAble
{
    /**
     * A unique identifier for this FunctionCallArgValue.
     */
    public function id(): FunctionCallArgValueId
    {
        $leafQueryBuilder = new \Dagger\Client\QueryBuilder('id');
        return new \Dagger\FunctionCallArgValueId((string)$this->queryLeaf($leafQueryBuilder, 'id'));
    }

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

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