Task_Definition
- Full name: \BigCommerce\Import\Task_Definition
Methods
__construct
Task_Definition constructor.
public __construct(callable $callback, int $priority, string $completion_state, array $in_progress_states = [], string $description = ''): mixedParameters:
| Parameter | Type | Description | 
|---|---|---|
| $callback | callable | The callback to run this task | 
| $priority | int | The order in which the task should run. Lower values run before higher values. | 
| $completion_state | string | The state at which this task is considered complete | 
| $in_progress_states | array | An array of optional interim states where the task should keep running. | 
| $description | string | A user-friendly description of the task | 
get_callback
public get_callback(): mixedget_priority
public get_priority(): mixedget_completion_state
public get_completion_state(): mixedget_in_progress_states
public get_in_progress_states(): mixedget_description
public get_description(): mixedAutomatically generated on 2025-01-21