ProcessorInterface
Interface for file processors. All classes capable of processing a file have to implement this interface.
Table of Contents
Methods
- canProcessTask() : bool
- Returns TRUE if this processor can process the given task.
- processTask() : mixed
- Processes the given task and sets the processing result in the task object.
Methods
canProcessTask()
Returns TRUE if this processor can process the given task.
public
canProcessTask(TaskInterface $task) : bool
Parameters
- $task : TaskInterface
Return values
boolprocessTask()
Processes the given task and sets the processing result in the task object.
public
processTask(TaskInterface $task) : mixed
Parameters
- $task : TaskInterface