<?php

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

declare(strict_types=1);

namespace Dagger;

/**
 * A definition of a custom interface defined in a Module.
 */
class InterfaceTypeDef extends Client\AbstractObject implements Client\IdAble
{
    public function description(): string
    {
        $leafQueryBuilder = new \Dagger\Client\QueryBuilder('description');
        return (string)$this->queryLeaf($leafQueryBuilder, 'description');
    }

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

    /**
     * A unique identifier for this InterfaceTypeDef.
     */
    public function id(): InterfaceTypeDefId
    {
        $leafQueryBuilder = new \Dagger\Client\QueryBuilder('id');
        return new \Dagger\InterfaceTypeDefId((string)$this->queryLeaf($leafQueryBuilder, 'id'));
    }

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

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