/**
  * {@inheritdoc}
  */
 public function normalize($object, $format = null, array $context = [])
 {
     $normalizedWarnings = $this->normalizeWarnings($object->getWarnings(), $context);
     if (isset($context['limit_warnings']) && $object->getWarnings()->count() > 0) {
         $object->addSummaryInfo('displayed', count($normalizedWarnings) . '/' . $object->getWarnings()->count());
     }
     return ['label' => $this->labelProvider->getStepLabel($object->getJobExecution()->getJobInstance()->getJobName(), $object->getStepName()), 'status' => $this->normalizeStatus($object->getStatus()->getValue()), 'summary' => $this->normalizeSummary($object->getSummary()), 'startedAt' => $this->presenter->present($object->getStartTime(), $context), 'endedAt' => $this->presenter->present($object->getEndTime(), $context), 'warnings' => $normalizedWarnings, 'failures' => array_map(function ($failure) {
         return $this->translator->trans($failure['message'], $failure['messageParameters']);
     }, $object->getFailureExceptions())];
 }