| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function createIncident(IncidentContext $context, string $message): IncidentInterface |
||
| 29 | { |
||
| 30 | $newIncident = IncidentEntity::createAndInsertIncident($this->type, $context, $message); |
||
| 31 | |||
| 32 | if ($context->getExecutionId() !== null) { |
||
|
|
|||
| 33 | $newIncident->createRecursiveIncidents(); |
||
| 34 | } |
||
| 35 | |||
| 36 | return $newIncident; |
||
| 37 | } |
||
| 65 |