public function storeMetaData(RestoreJob $job, JobStats $jobStats, array $storedStats, OutputInterface $output) { $memoryAtSection = memory_get_usage(); $timeStartSection = microtime(true); $output->writeln('<info>*** Starting with meta data storing ***</info>' . PHP_EOL); $this->filesystem->storeRestoreServerInfo($job->getPath(), $job->getCreatedAt(), $job->getServerInfo()); $output->writeln('<comment> - Stored server-info file</comment>' . PHP_EOL); $this->filesystem->storeRestoreStoredStats($job->getPath(), $job->getCreatedAt(), $storedStats); $output->writeln('<comment> - Stored stored-stats file</comment>' . PHP_EOL); $output->writeln(''); $jobStats->setStoreMetaData(microtime(true) - $timeStartSection, memory_get_usage(), memory_get_usage() - $memoryAtSection, array('storedStats' => $storedStats)); }