class Module extends AbstractObject implements IdAble

A Dagger module.

Properties

$lastQuery from  AbstractObject

Methods

__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

array
dependencies()

The dependencies of the module.

string
description()

The doc string of the module, if any

array
enums()

Enumerations served by this module.

generatedContextDirectory()

The generated files and directories made on top of the module source's context directory.

id()

A unique identifier for this Module.

array
interfaces()

Interfaces served by this module.

string
name()

The name of the module

array
objects()

Objects served by this module.

runtime()

The container that runs the module's entrypoint. It will fail to execute if the module doesn't compile.

sdk()

The SDK config used by this module.

void
serve()

Serve a module's API in the current session.

source()

The source for the module.

sync()

Forces evaluation of the module, including any loading into the engine and associated validation.

withDescription(string $description)

Retrieves the module with the given description

withEnum(TypeDef $enum)

This module plus the given Enum type and associated values

withInterface(TypeDef $iface)

This module plus the given Interface type and associated functions

withObject(TypeDef $object)

This module plus the given Object type and associated functions.

Details

in AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

Parameters

AbstractClient $client
QueryBuilderChain $queryBuilderChain

in AbstractObject at line 19
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

Parameters

QueryBuilder $leafQueryBuilder
string $leafKey

Return Value

null|array|string|int|float|bool

at line 19
array dependencies()

The dependencies of the module.

Return Value

array

at line 28
string description()

The doc string of the module, if any

Return Value

string

at line 37
array enums()

Enumerations served by this module.

Return Value

array

at line 46
Directory generatedContextDirectory()

The generated files and directories made on top of the module source's context directory.

Return Value

Directory

at line 55
AbstractId id()

A unique identifier for this Module.

Return Value

AbstractId

at line 64
array interfaces()

Interfaces served by this module.

Return Value

array

at line 73
string name()

The name of the module

Return Value

string

at line 82
array objects()

Objects served by this module.

Return Value

array

at line 91
Container runtime()

The container that runs the module's entrypoint. It will fail to execute if the module doesn't compile.

Return Value

Container

at line 100
SDKConfig sdk()

The SDK config used by this module.

Return Value

SDKConfig

at line 111
void serve()

Serve a module's API in the current session.

Note: this can only be called once per session. In the future, it could return a stream or service to remove the side effect.

Return Value

void

at line 120
ModuleSource source()

The source for the module.

Return Value

ModuleSource

at line 129
ModuleId sync()

Forces evaluation of the module, including any loading into the engine and associated validation.

Return Value

ModuleId

at line 138
Module withDescription(string $description)

Retrieves the module with the given description

Parameters

string $description

Return Value

Module

at line 148
Module withEnum(TypeDef $enum)

This module plus the given Enum type and associated values

Parameters

TypeDef $enum

Return Value

Module

at line 158
Module withInterface(TypeDef $iface)

This module plus the given Interface type and associated functions

Parameters

TypeDef $iface

Return Value

Module

at line 168
Module withObject(TypeDef $object)

This module plus the given Object type and associated functions.

Parameters

TypeDef $object

Return Value

Module