@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / CreatePhpProgramBuilderOptions
Interface: CreatePhpProgramBuilderOptions<TContext, TInput, TOutput>
Extends
Pick<CreateHelperOptions<TContext,TInput,TOutput>,"dependsOn"|"mode"|"priority"|"origin">
Type Parameters
TContext
TContext extends PipelineContext = PipelineContext
TInput
TInput extends BuilderInput = BuilderInput
TOutput
TOutput extends BuilderOutput = BuilderOutput
Properties
build()
ts
readonly build: (builder, entry) => void | Promise<void>;Parameters
builder
entry
Returns
void | Promise<void>
filePath
ts
readonly filePath: string;key
ts
readonly key: string;metadata
ts
readonly metadata: PhpFileMetadata;namespace
ts
readonly namespace: string;dependsOn?
ts
readonly optional dependsOn: readonly string[];Prerequisite helper keys.
Default Value
[]
Inherited from
mode?
ts
readonly optional mode: HelperMode;Duplicate-key policy.
Default Value
'extend'
Inherited from
origin?
ts
readonly optional origin: string;Optional provenance label used in diagnostics.
Inherited from
priority?
ts
readonly optional priority: number;Relative ordering hint.
Default Value
0
