ImportExecutionContext
in package
FinalYes
State of one live run: wraps the validation context (job settings, code lists as id maps, log of the `execute` phase, matching registries) and adds the write summary.
It exists so that ImportExecutor and ImportProductWriter do not pass six parameters around; it is working state of the run, not a file DTO (same pattern as ImportValidationContext).
Table of Contents
Properties
- $jobId : int|null
- Job id for the note of the stock document ("Product import #12"), so the movement can be traced.
- $summary : ImportExecutionSummary
- $userId : int|null
- User who started the import; goes to the stock document as `userId` (as in the admin receipt).
- $validation : ImportValidationContext
Methods
- __construct() : mixed
- getCodebooks() : ImportCodebooks
- getLog() : ImportLogWriter
- getSettings() : ImportSettingsDto
Properties
$jobId read-only
Job id for the note of the stock document ("Product import #12"), so the movement can be traced.
public
int|null
$jobId
= null
$summary read-only
public
ImportExecutionSummary
$summary
$userId read-only
User who started the import; goes to the stock document as `userId` (as in the admin receipt).
public
int|null
$userId
= null
$validation read-only
public
ImportValidationContext
$validation
Methods
__construct()
public
__construct(ImportValidationContext $validation, ImportExecutionSummary $summary[, int|null $jobId = null ][, int|null $userId = null ]) : mixed
Parameters
- $validation : ImportValidationContext
- $summary : ImportExecutionSummary
- $jobId : int|null = null
- $userId : int|null = null
getCodebooks()
public
getCodebooks() : ImportCodebooks
Return values
ImportCodebooksgetLog()
public
getLog() : ImportLogWriter
Return values
ImportLogWritergetSettings()
public
getSettings() : ImportSettingsDto