| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function queueUpdate($entity, Node $node, State $state): ContextCarrierInterface |
||
| 19 | { |
||
| 20 | /** @var Update $command */ |
||
| 21 | $command = parent::queueUpdate($entity, $node, $state); |
||
| 22 | |||
| 23 | $now = new \DateTimeImmutable(); |
||
| 24 | |||
| 25 | $state->register('updated_at', $now, true); |
||
| 26 | $command->registerAppendix('updated_at', $now); |
||
| 27 | |||
| 28 | return $command; |
||
| 29 | } |
||
| 31 |