/** * Process the file queue into usable objects * * Returns an array of DataContainer objects for use in the CodeWorker. * * @return array */ public function processFiles() { foreach ($this->config->getFilesToMock() as $file) { try { $fileData = $this->processFile($file, $this->config); $this->processDataWithWorkers($fileData); } catch (MockMakerException $e) { echo "\nMockMakerException: {$e->getMessage()}\n"; continue; } } return implode(PHP_EOL . str_repeat("-", 50) . PHP_EOL, $this->mockCode); }