logger = $logger; return $this; } public function getLogger() { if (null === $this->logger) { $this->logger = new Logger(); } return $this->logger; } public function showStatistics() { if ($this->output->isQuiet()) { return $this; } $this->getLogger()->setPrefix(''); $parts = []; foreach ($this->statistics as $field => $value) { if ($value) { $parts[] = $value . ' - ' . $field; } } if ($parts) { $message = 'Summary: ' . implode(', ', $parts) . '.'; $this->getLogger()->info($message); } return $this; } }