docs/static/reference/php/Dagger/CurrentModule.html
class CurrentModule extends AbstractObject implements IdAble
Reflective module API provided to functions at runtime.
| | $lastQuery | | from AbstractObject |
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
from AbstractObject
null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
from AbstractObject
array
The dependencies of the module.
The generated files and directories made on top of the module source's context directory.
generators(array|null $include = null)
Return all generators defined by the module
id()
A unique identifier for this CurrentModule.
string
name()
The name of the module being executed in
source()
The directory containing the module's source code loaded into the engine (plus any generated code that may have been created).
workdir(string $path, array|null $exclude = null, array|null $include = null, bool|null $gitignore = false)
Load a directory from the module's scratch working directory, including any changes that may have been made to it during module function execution.
workdirFile(string $path)
Load a file from the module's scratch working directory, including any changes that may have been made to it during module function execution.Load a file from the module's scratch working directory, including any changes that may have been made to it during module function execution.
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain) No description
| AbstractClient | $client | | | QueryBuilderChain | $queryBuilderChain | |
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)No description
| QueryBuilder | $leafQueryBuilder | | | string | $leafKey | |
| null|array|string|int|float|bool | |
array dependencies()The dependencies of the module.
| array | |
Directory generatedContextDirectory()The generated files and directories made on top of the module source's context directory.
| Directory | |
GeneratorGroup generators(array|null $include = null)Return all generators defined by the module
| array|null | $include | |
| GeneratorGroup | |
AbstractId id()A unique identifier for this CurrentModule.
| AbstractId | |
string name()The name of the module being executed in
| string | |
Directory source()The directory containing the module's source code loaded into the engine (plus any generated code that may have been created).
| Directory | |
Directory workdir(string $path, array|null $exclude = null, array|null $include = null, bool|null $gitignore = false)Load a directory from the module's scratch working directory, including any changes that may have been made to it during module function execution.
| string | $path | | | array|null | $exclude | | | array|null | $include | | | bool|null | $gitignore | |
| Directory | |
File workdirFile(string $path)Load a file from the module's scratch working directory, including any changes that may have been made to it during module function execution.Load a file from the module's scratch working directory, including any changes that may have been made to it during module function execution.
| string | $path | |
| File | |
Generated by Doctum, a API Documentation generator and fork of Sami.