| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class BatchSeedJobDeclaration extends JobDeclaration |
||
| 21 | { |
||
| 22 | public function __construct() |
||
| 23 | { |
||
| 24 | parent::__construct(BatchSeedJobHandler::TYPE); |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function resolveExecution(/*BatchEntity*/$batch): ?ExecutionEntity |
||
| 28 | { |
||
| 29 | return null; |
||
| 30 | } |
||
| 31 | |||
| 32 | protected function newJobInstance(/*BatchEntity*/$batch = null): JobEntity |
||
| 33 | { |
||
| 34 | return new MessageEntity(); |
||
| 35 | } |
||
| 36 | |||
| 37 | protected function resolveJobHandlerConfiguration(/*BatchEntity*/$batch): JobHandlerConfiguration |
||
| 38 | { |
||
| 39 | return new BatchSeedJobConfiguration($batch->getId()); |
||
|
|
|||
| 40 | } |
||
| 41 | |||
| 42 | protected function resolveJobDefinitionId(/*BatchEntity*/$batch): string |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getJobPriorityProvider(): ParameterValueProviderInterface |
||
| 48 | { |
||
| 49 | $batchJobPriority = Context::getProcessEngineConfiguration() |
||
| 54 |