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 = ''): mixed
Parameters:
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(): mixed
get_priority
public get_priority(): mixed
get_completion_state
public get_completion_state(): mixed
get_in_progress_states
public get_in_progress_states(): mixed
get_description
public get_description(): mixed
Automatically generated on 2025-01-21