/** * get entry for failed command to be used in HTML response * * @param ScheduledCommand $command command to be handled * @return array */ private function getFailedHTMLEntry(ScheduledCommand $command) { return array('id' => $command->getId(), 'name' => $command->getName(), 'returncode' => $command->getLastReturnCode(), 'timeout' => $command->getLocked(), 'execution' => $command->getLastExecution()->getTimestamp()); }