protected function getFiles(array $files) { $filesEntity = []; foreach ($files as $file) { $filesEntity[] = new File($file); } return $filesEntity; }