<?php

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

declare(strict_types=1);

namespace Dagger;

/**
 * A simple key value object that represents a label.
 */
class Label extends Client\AbstractObject implements Client\IdAble
{
    /**
     * A unique identifier for this Label.
     */
    public function id(): LabelId
    {
        $leafQueryBuilder = new \Dagger\Client\QueryBuilder('id');
        return new \Dagger\LabelId((string)$this->queryLeaf($leafQueryBuilder, 'id'));
    }

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

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