Data Access Object (DAO) for managing analysis_tasks and analysis_results tables.
More...
|
| static | create (string $taskId, int $userId, string $pair) |
| | Creates a new analysis task record in PENDING state.
|
| |
| static | getHistoryByUser (int $userId, int $limit=10) |
| | Retrieves recent task history for a specific user, including merged result data.
|
| |
Data Access Object (DAO) for managing analysis_tasks and analysis_results tables.
◆ create()
| static App\Models\AnalysisTask::create |
( |
string | $taskId, |
|
|
int | $userId, |
|
|
string | $pair ) |
|
static |
Creates a new analysis task record in PENDING state.
- Parameters
-
| string | $taskId | Unique UUID for the task. |
| int | $userId | The ID of the task owner. |
| string | $pair | The trading pair being analyzed. |
- Returns
- bool True if insertion succeeds, false otherwise.
◆ getHistoryByUser()
| static App\Models\AnalysisTask::getHistoryByUser |
( |
int | $userId, |
|
|
int | $limit = 10 ) |
|
static |
Retrieves recent task history for a specific user, including merged result data.
- Parameters
-
| int | $userId | The ID of the requesting user. |
| int | $limit | Maximum number of records to return. |
- Returns
- array Array of associative arrays representing task records.
The documentation for this class was generated from the following file: