| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class IndexFileService implements JobService |
||
| 18 | { |
||
| 19 | use LocatorAwareTrait; |
||
| 20 | use LogTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Run an async job using $payload input data and optional $options. |
||
| 24 | * |
||
| 25 | * It can return: |
||
| 26 | * - a boolean i.e. `true` on success, `false` on failure |
||
| 27 | * - an array with keys: |
||
| 28 | * - 'success' (required) => `true` on success, `false` on failure |
||
| 29 | * - 'messages' (optional) => array of messages |
||
| 30 | * |
||
| 31 | * @param array $payload Input data for running this job. |
||
| 32 | * @param array $options Options for running this job. |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | public function run(array $payload, array $options = []): bool |
||
| 53 |