TaskTypeRegistry implements SingletonInterface
The registry for task types.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $registeredTaskTypes : array<string|int, mixed>
Methods
- __construct() : mixed
- Register task types from configuration
- getTaskForType() : TaskInterface
- getClassForTaskType() : string
- Returns the class that implements the given task type.
Properties
$registeredTaskTypes
protected
array<string|int, mixed>
$registeredTaskTypes
= []
Methods
__construct()
Register task types from configuration
public
__construct() : mixed
getTaskForType()
public
getTaskForType(string $taskType, ProcessedFile $processedFile, array<string|int, mixed> $processingConfiguration) : TaskInterface
Parameters
- $taskType : string
- $processedFile : ProcessedFile
- $processingConfiguration : array<string|int, mixed>
Tags
Return values
TaskInterfacegetClassForTaskType()
Returns the class that implements the given task type.
protected
getClassForTaskType(string $taskType) : string
Parameters
- $taskType : string